how to get Accesstoken on android.
parkypark86
Registered Users Posts: 4 Beginner grinner
I am so frustrated for 3 days to fix the problem. I couldn't find any good example of smugmug 1.3.0 for java.
What I want to do is I have android app that connects java servlet (currently it is on tomcat local).
I want to put Smugmug api code on the doPost method for login.
Once doPost is triggered,
request requestToken (Successful)
request authorizedUrl (Successful)
The problem is Since I am making android, I need to display the authorizedUrl on android phone by using WebView.(I think there is only the way.)
which means that after getting the url, servlet has to pass url to android.
After user login, android goes to the servlet again to process the rest of flow.
My question is this.
Is there way smugmug automatically display their own loging page once accepting requestToken?
If not, what should I do once I get authorizedUrl on the servlet to do next step for login.
What I want to do is I have android app that connects java servlet (currently it is on tomcat local).
I want to put Smugmug api code on the doPost method for login.
Once doPost is triggered,
request requestToken (Successful)
request authorizedUrl (Successful)
The problem is Since I am making android, I need to display the authorizedUrl on android phone by using WebView.(I think there is only the way.)
which means that after getting the url, servlet has to pass url to android.
After user login, android goes to the servlet again to process the rest of flow.
My question is this.
Is there way smugmug automatically display their own loging page once accepting requestToken?
If not, what should I do once I get authorizedUrl on the servlet to do next step for login.
0
Comments
Facebook
Google+
Twitter
Photo Blog