Guest User

Untitled

a guest
Jan 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. sync
  2.  
  3. GCBaseRequest request = GCChutes.Resources.contributors(
  4. GCAccount.getInstance(getApplicationContext()), "6");
  5. try {
  6. GCResponse response = request.execute();
  7. GCMemberCollection collection = (GCMemberCollection) response.getResponseObject();
  8. Log.e(TAG, collection.toString());
  9. } catch (GCApiException e) {
  10. Log.w(TAG, "", e);
  11. }
  12.  
  13. async
  14. new GCAsyncRunner(request, this).execute();
  15.  
  16. @Override
  17. public void onComplete(GCResponse responseModel) {
  18. try {
  19. Log.e(TAG, responseModel.toString());
  20. } catch (Exception e) {
  21. Log.w(TAG, "", e);
  22. }
  23. }
  24.  
  25. @Override
  26. public void onFail(String message, GCRequestParameters requestParameters,
  27. GCResponse responseModel) {
  28. try {
  29. Log.e(TAG, message);
  30. Log.e(TAG, requestParameters.toString());
  31. Log.e(TAG, responseModel.toString());
  32. } catch (Exception e) {
  33. Log.w(TAG, "", e);
  34. }
  35. }
Add Comment
Please, Sign In to add comment