Search code examples
c#resttwitter

Rest API design ( twitter )


I want to build a rest API for a project, So currently I am trying to build something using Twitter API. I have registered a new application on Twitter. I have the following keys after registration

  1. Consumer key
  2. Consumer secret
  3. Request token URL
  4. Access token URL
  5. Authorize URL
  6. Registered OAuth Callback URL

So what are these keys and where do all these fit in a Rest API design considerations

Thanks :)


Solution

  • These are OAuth parameters and the best place to put them is in the Authentication header. See the example in section 5.4.1. here http://oauth.net/core/1.0/#consumer_req_param.

    Authentication is an issue completely independent of REST and therefore to answer your question, those parameters you listed have absolutely nothing to do with RESTful design.