2

when i am sending invitation through linkedin integration i got the following error

  "errorCode": 0,

  "message": "Internal API server error",

  "requestId": "3KLV53VUW0",

  "status": 500,

  "timestamp": 1365154932156

i am sending the invitation request like this

  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 to 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 to connect.\",\"body\": \"Say yes!\",\"item-content\":{\"invitation-request\":{\"connect-type\":\"friend\",\"authorization\":{ \"name\":\"NAME_SEARCH\",\"value\":\"i_QN\"}}}}"];

any body please help me out

thanks in advance

Ankur
  • 5,086
  • 19
  • 37
  • 62
seenu
  • 147
  • 1
  • 7

0 Answers0