Created
September 4, 2012 19:02
-
-
Save arthurnn/3625085 to your computer and use it in GitHub Desktop.
Login example using 500px android sdk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LoginActivity extends Activity implements XAuth500pxTask.Delegate{ | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
XAuth500pxTask loginTask = new XAuth500pxTask(this); | |
loginTask.execute(getString(R.string.px_consumer_key), getString(R.string.px_consumer_secret),"username","pass"); | |
} | |
@Override | |
public void onSuccess(AccessToken result) { | |
Log.w(TAG, "success "+result); | |
} | |
@Override | |
public void onFail(FiveHundredException e) { | |
; | |
} | |
} |
That's cool, I was searching to use 500px API and found this as a cool lib, Thanks a lot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
500Exception :-) Sweet ^.^ Nice work there!