Skip to content

Instantly share code, notes, and snippets.

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