Skip to content

Instantly share code, notes, and snippets.

@darko1002001
Created September 11, 2011 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darko1002001/1209933 to your computer and use it in GitHub Desktop.
Save darko1002001/1209933 to your computer and use it in GitHub Desktop.
GCChutes.contributors()
sync
GCBaseRequest request = GCChutes.Resources.contributors(
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