Some assistance required on my first tweet

oauth
api

#1

Hi all, I’m trying to build an application to post a tweet but I’m having difficulties generating an authorised request.

I am trying to POST this request:

https://api.twitter.com/1.1/statuses/update.json?include_entities=true&status=TEST

Include entities and status are query parameters.

Can someone provide the answers to these 2 questions;

  1. When I build the signature I need to include oauth_consumer_key, oauth_nonce, oauth_signature_method, oauth_timestamp, oauth_token, and oauth_version… Do I need to include include_entities, and status?

  2. When I build the header, does the header need to include_entities, and status?

Sorry for the basic question but I’ve been trying for a good few weeks now and concede that I need some help.

Thank you


#2

Authorizing a request walks you through exactly what you are trying to do. It is however strongly recommended that you do not write your own OAuth implementation. It is pretty much guaranteed to be incorrect. Instead pick an existing library and use it.