title: PHP OAuth 1.0 Library that handles an api key/secret pair and endpoints (request,authorization,and access)
body: <p>I'm working with an OAuth 1.0 API that requires we use an API KEY/PAIR. Also, it gives me 3 urls:</p>
  
  <ul>
  <li>Request token endpoint: /oauth/request_token</li>
  <li>Authorization endpoint: /oauth/authorize</li>
  <li>Access token endpoint: /oauth/access_token</li>
  </ul>
  
  <p>Here is what the documentation states:</p>
  
  <hr>
  
  <p>We use the most current specification of OAuth 1.0 protocol (RFC 5849)  to authenticate our API requests. We use OAuth 1.0 because it is an open standard, and <strong>we adapt the "three-legged" client/user/server protocol flow of OAuth 1.0 to a "two-legged" client/server model</strong>.
  In our adaptation of OAuth for authenticated client/server requests, the client acts as both the API client and the user (i.e., owner of the requested resource).
  So, instead of being redirected to the client with a token verifier, the client acts as a user and directly accesses the server for the OAuth verifier. The accessibility check happens when the client requests a resource from the server with an access token obtained using the previously obtained verifier. You can reuse access tokens until they expire (after two hours). After the tokens expire, you must request a new access token. Examples will clarify this further.</p>
  
  <hr>
  
  <p>I'd like to find a PHP OAuth Library that can use the API requirements I have for accessing the third party's company API. I really don't know how to implement this. My current thought is to reverse engineer the facebook php api but I don't know if it uses 3 endpoints.  Also, some help with getting it operational or directing me to a resource where I can figure it out myself would be great.</p>
  
  <p>Thanks!</p>
  
  <p>** NOTE: I found this: <a href="https://code.google.com/p/oauth-php" rel="nofollow">click here</a> Can this be the solution I am looking for?</p>