You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where url is the url to the image. When I ma trying to use the above code to update profile pic. I get the following error:
Error Message:Request 6397A72F-BF61-42B7-8B50-BA7F62CBFEC4 failed with error: Error Domain=HTTP Code=500
Any help is appreciated.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I am using the following code to update profile pic:
(NSString *)setBackgroundimage:(NSString *)imageurl{
if (!imageurl) {
return nil;
}
NSString *path = [NSString stringWithFormat:@"account/update_profile_image.%@", API_FORMAT];
imageurl = [imageurl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSString *trimmedLocation = imageurl;
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
[params setObject:trimmedLocation forKey:@"profile_image_url"];
NSString *body = [self _queryStringWithBase:nil parameters:params prefixed:NO];
return [self _sendRequestWithMethod:HTTP_POST_METHOD path:path
queryParameters:params body:body
requestType:MGTwitterAccountLocationRequest
responseType:MGTwitterUser];
}
where url is the url to the image. When I ma trying to use the above code to update profile pic. I get the following error:
Error Message:Request 6397A72F-BF61-42B7-8B50-BA7F62CBFEC4 failed with error: Error Domain=HTTP Code=500
Any help is appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: