Created
September 11, 2011 18:22
-
-
Save darko1002001/1209931 to your computer and use it in GitHub Desktop.
GCChutes.members()
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
sync | |
GCBaseRequest request = GCChutes.Resources.members( | |
GCAccount.getInstance(getApplicationContext()), "6"); | |
try { | |
GCResponse response = request.execute(); | |
GCMemberCollection collection = (GCMemberCollection) response.getResponseObject(); | |
Log.e(TAG, collection.toString()); | |
} catch (GCApiException e) { | |
Log.w(TAG, "", e); | |
} | |
async | |
new GCAsyncRunner(request, this).execute(); | |
@Override | |
public void onComplete(GCResponse responseModel) { | |
try { | |
Log.e(TAG, responseModel.toString()); | |
} catch (Exception e) { | |
Log.w(TAG, "", e); | |
} | |
} | |
@Override | |
public void onFail(String message, GCRequestParameters requestParameters, | |
GCResponse responseModel) { | |
try { | |
Log.e(TAG, message); | |
Log.e(TAG, requestParameters.toString()); | |
Log.e(TAG, responseModel.toString()); | |
} catch (Exception e) { | |
Log.w(TAG, "", e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment