Tumblr integration in android - android

In my app I want to integrate tumblr and getting photos from tumblr. On Github I have found "TumblrExample". In this sample I have replaced my consumer key and consumer secret and when I run this app I am getting following exception:
dalvikvm :Could not find class 'oauth.signpost.commonshttp.CommonsHttpOAuthConsumer', referenced from method com.robertszkutak.androidexamples.tumblrexample.TumblrExampleActivity.<clinit>
java.lang.VerifyError: com/robertszkutak/androidexamples/tumblrexample/TumblrExampleActivity
I have studied full documentation of tumblr api. In that api all webservices available to get the data. To get the photos from tumblr api the following websevice is useed:
http://api.tumblr.com/v2/blog/{hostname}/posts?api_key={consumer key}&type=photo
How can I authorise and get the hostname programatically?

I also getting same problem in same sample i.e "TumblrExample". But, I replace signpost-commonshttp4.jar, signpost-core.jar with latest and also i change version i.e 1.6 to 2.3 its works perfect.
Use signpost-commonshttp4.jar and signpost-core.jar from here:
https://code.google.com/p/oauth-signpost/downloads/list

Related

Change in twitter login

As we know, there have been changes in access to the twitter API referring to callbacks URLs.
So far, I have been using the identification callback with firebase, as I indicated here:
This has been working perfectly so far.
I read in the documentation that now you have to indicate the callback, according to android or iOS in the following way:
twitterkit- : // if using Twitter Kit for iOS or
twittersdk: // if using Twitter Kit for Android.
My application is only developed for android.
I have tried all the possible variants, but I always get the following error:
The client application failed validation: Not a valid callback URL format.
The tested options have been:
twittersdk://pfa89MGYola62VIln ........ (MY_CONSUMER_KEY)
twittersdk://MY_APP-android.firebaseapp.com/__/auth/handler
twittersdk://https://MY_APP-android.firebaseapp.com/__/auth/handler
I have activated and deactivated the check "enable callback locking" ...
I've tried everything, I'm a little desperate
For another test, I tried to register the URL callback as if it were the iOS platform
twitterkit-MY_CONSUMER_KEY://
and it was accepted on the first attempt.
I do not mind losing the relationship with firebase, the truth is that I was not using it, but I have a serious problem if I can not connect with twitter again.
I appreciate any help.
I found the solution, I put it here in case it can be of help to someone.
The truth is that it is not well specified in the documentation, you have to take two steps.
First: activate the "enable callback locking" checkbox
Second: indicate the android sdk for twitter, WITHOUT CONSUMER KEY, unlike iOS users.
It would be like this:
I hope it helps

Issue with Linkedin integration using socialauth in android

I had implmented linkedin integartion in my android app using socialauth a year ago. It was working fine till few days back. Now it gives following error:
"org.brickred.socialauth.exception.SocialAuthConfigurationException: Application keys are not correct. The server running the application should be same that was registered to get the keys."
Tried using following default keys also.
api.linkedin.com.consumer_key = bh82t52rdos6
api.linkedin.com.consumer_secret = zQ1LLrGbhDZ36fH8
Getting same error for keys of app generated previously, default app keys and for fresh created app.
Any idea why it is happening? Is there any change in linkedin APIs?
Libs included : socialauth-4.4.jar, socialauth-android-3.2.jar.
This is due to the change in the Linked in developer program.
Changes are mentioned here https://developer.linkedin.com/support/developer-program-transition.
You getting this error because the default scope setting in the r_fullprofile which is as part of the change no longer available.
So to apply this changes in the socialauth API you should pass the scope permission as <prop key="api.linkedin.com.custom_permissions">r_basicprofile,r_emailaddress</prop>
Linkedin have updated their Scope for API , they have updated their APIs link:https://developer.linkedin.com/support/developer-program-transition
The following selection of profile fields are available to all LinkedIn developers:
Basic Profile Fields
Location Fields
Position Fields
These fields are not
Full Profile Fields
Contact Info Fields
Company Fields
Publication Fields
Patent Fields
Language Fields
Skill Fields
Certification Fields
Course Fields
Education Fields
Volunteer Fields
Recommendation Fields.
Additionally
only these Profile API — /v1/people/~ Share API — /v1/people/~/shares Companies API — /v1/companies/{id} will work.
Check your scope.
LinkedIn locked many parts of its APIs on May 12, 2015 according to https://developer.linkedin.com/blog/posts/2015/developer-program-changes
Since you're using the socialauth library, you will have to wait for its developers to push a new version. :(
Downloading 4.9 library solves this issue
You can get the jar from Maven directly:
http://search.maven.org/remotecontent?filepath=org/brickred/socialauth/4.9/socialauth-4.9.jar

videos json not found in facebook android sdk

Today,I use the facebook android sdk to develope app.
I want to get my facebook's the list of videos,but I get it as follow.
https://graph.facebook.com/v2.3/me/videos
{"data":[]}
I find the request command "/{user-id}/videos",but it can't get the useful data.it's empty.I don't know how to solve it.
ps:In my facebook homepage,I have two public videos.

Authorize net gateway process in android failed

I am working on payment process in my application. I am following the authorize.net sample example
as per the steps I imported library and the code but when I am testing in test mode with account created I am getting error response. I tested it in emulator. In the guide they provide for help there is no notes for this error message about what is the real solution.
Error Code: 87
Error message: Transactions of this market type is not processed on this system.
Can anybody suggest on this ?
This error indicates that the account that you are using was created for Card Present (retail) transactions, but you are trying to integrate to the Card Not Present (e-commerce) APIs or vice versa. Simply create and use a new sandbox account with the correct type.
You can read more about it here.

How to use Google's auto complete places api in Android application

I want to use Google Places API in my android application. I have API Key I got it from Google's API console. I am following the Perform Autocomplete section in this tutorial.
Now the problem I am facing is exactly which jar file I need for this. I have tried with two:
google-api-client-1.6.0-beta.jar
In this case I am getting exception when creating the object of class where I have implemented these methods and imported the packages of above library
google-http-client-1.6.0-beta.jar
GoogleHeaders cannot be resolved to a type
If I comment the code where I am setting header to request it does not shows any error but
when I execute the code I get the following error:
java.lang.NoClassDefFoundError: com.google.common.base.Preconditions
I have also added all the dependency jars.
There is no need to use a specific client. Just use any library that can make HTTP requests (like Apache HttpClient), then parse the JSON (or XML) that you get back from the Places API.

Categories

Resources