-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from nayram/master
Token not available (dev branch)
- Loading branch information
Showing
7 changed files
with
200 additions
and
150 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ protected void onCreate(Bundle savedInstanceState) { | |
setContentView(R.layout.activity_main); | ||
|
||
//Create a shared preference like this | ||
SharedPreferences sp = getSharedPreferences(getPackageName(), Context.MODE_PRIVATE); | ||
// SharedPreferences sp = getSharedPreferences(getPackageName(), Context.MODE_PRIVATE); | ||
|
||
//Now go ahead and set devless up | ||
String appUrl = "http://buildgallery.herokuapp.com"; // remember no slash after the com just the absolute URL | ||
|
@@ -45,7 +45,9 @@ protected void onCreate(Bundle savedInstanceState) { | |
setUpDevlessUserToken Right under the instance and pass in the | ||
name of your shared preference variable. Im my case I called my shared preference *sp* | ||
*/ | ||
devless.addUserToken(sp); | ||
// devless.addUserToken(sp); | ||
|
||
//Log.e("token", devless.getDevlessUserToken()); | ||
|
||
|
||
// Sign Up | ||
|
@@ -64,19 +66,41 @@ public void onSignUpFailed(ErrorMessage errorMessage) { | |
*/ | ||
|
||
|
||
/* | ||
devless.loginWithEmailAndPassword("[email protected]", "password", sp, new LoginResponse() { | ||
|
||
// devless.loginWithEmailAndPassword("[email protected]", "password", new LoginResponse() { | ||
// @Override | ||
// public void onLogInSuccess(ResponsePayload response) { | ||
// Log.e("==Success==", response.toString()); | ||
// } | ||
// | ||
// @Override | ||
// public void onLogInFailed(ErrorMessage errorMessage) { | ||
// Log.e("==Failure==", errorMessage.toString()); | ||
// } | ||
// }); | ||
|
||
devless.getData("gitmo", "test_table", new GetDataResponse() { | ||
@Override | ||
public void onLogInSuccess(ResponsePayload response) { | ||
Log.e("==Success==", response.toString()); | ||
public void onSuccess(ResponsePayload response) { | ||
Log.e("Success", response.toString()); | ||
} | ||
|
||
@Override | ||
public void onLogInFailed(ErrorMessage errorMessage) { | ||
Log.e("==Failure==", errorMessage.toString()); | ||
public void onFailed(ErrorMessage errorMessage) { | ||
Log.e("Failure", errorMessage.toString()); | ||
} | ||
|
||
@Override | ||
public void userNotAuthenticated(ErrorMessage message) { | ||
Log.e("UserNotAuth", message.toString()); | ||
} | ||
|
||
@Override | ||
public void fullRequestResponse(ResponsePayload response) { | ||
Log.e("Full", response.toString()); | ||
} | ||
}); | ||
*/ | ||
|
||
|
||
|
||
|
||
|
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
Oops, something went wrong.