iphone - internal api server error in linkedin integration -
when sending invitation through linkedin integration got following error
"errorcode": 0, "message": "internal api server error", "requestid": "3klv53vuw0", "status": 500, "timestamp": 1365154932156
i sending invitation request
nsurl *url = [nsurl urlwithstring:@"http://api.linkedin.com/v1/people/~/mailbox"]; oamutableurlrequest *request = [[oamutableurlrequest alloc] initwithurl:url consumer:oauthloginview.consumer token:oauthloginview.accesstoken callback:nil signatureprovider:nil]; nsstring *str = [nsstring stringwithformat:@"{\"recipients\":{\"values\": [{\"person\": {\"_path\": \"/people/6jmpthsfnj\", }}]},\"subject\": \"invitation connect.\",\"body\": \"say yes!\",\"item-content\":{\"invitation-request\":{\"connect-type\":\"friend\",\"authorization\":{ \"name\":\"name_search\",\"value\":\"i_qn\"}}}}"]; [request sethttpmethod:@"post"]; [request setvalue:@"application/json" forhttpheaderfield:@"content-type"]; [request setvalue:@"json" forhttpheaderfield:@"x-li-format"]; [request sethttpbodywithstring:str]; nsstring *str = [nsstring stringwithformat:@"{\"recipients\":{\"values\": [{\"person\": {\"_path\": \"/people/6jmpthsfnj\", }}]},\"subject\": \"invitation connect.\",\"body\": \"say yes!\",\"item-content\":{\"invitation-request\":{\"connect-type\":\"friend\",\"authorization\":{ \"name\":\"name_search\",\"value\":\"i_qn\"}}}}"];
any body please me out
thanks in advance
Comments
Post a Comment