thieumao

LiveDualAPI

Feb 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import "LiveDualAPI.h"
  2.  
  3. @implementation LiveDualAPI
  4.  
  5. + (NSString *)invite:(NSString *)showId userId:(NSString *)userId completion:(ServiceCompletion)completion
  6. {
  7.     return [BaseAPI makeRequest:[NSString stringWithFormat:@"show/me/liveshow/invite/%@/%@", showId, userId] method:kHTTPMethod_GET headers:[BaseAPI getSessionHeader] params:nil contentType:eHTTPContentType_UrlEncoded completion:completion];
  8. }
  9.  
  10. + (NSString *)acceptInvite:(NSString *)showId completion:(ServiceCompletion)completion
  11. {
  12.     return [BaseAPI makeRequest:[NSString stringWithFormat:@"show/me/liveshow/accept/%@", showId] method:kHTTPMethod_GET headers:[BaseAPI getSessionHeader] params:nil contentType:eHTTPContentType_UrlEncoded completion:completion];
  13. }
  14.  
  15. + (NSString *)rejectInvite:(NSString *)showId completion:(ServiceCompletion)completion
  16. {
  17.     return [BaseAPI makeRequest:[NSString stringWithFormat:@"show/me/liveshow/reject/%@", showId] method:kHTTPMethod_GET headers:[BaseAPI getSessionHeader] params:nil contentType:eHTTPContentType_UrlEncoded completion:completion];
  18. }
  19.  
  20. @end
Add Comment
Please, Sign In to add comment