Getting 404, error 34 on friendship create api


#1

Hi,

I am trying to make an API post request to friendship/create using below json:

{ url: 'https://api.twitter.com/1.1/friendships/create.json',
  method: 'POST',
  oauth: 
   { consumer_key: key,
     consumer_secret: secret,
     token: token,
     token_secret: tokensecret},
  json: { user_id: myid, follow: true } }

but getting a response as below:

{ errors: [ { message: 'Sorry, that page does not exist', code: 34 } ] }

can someone please suggest what is needed to be corrected here. Any lead would be highly appreciated.