PHP Classes

Using bearer tokens with Twitter?

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  Using bearer tokens with Twitter?  >  (Un) Subscribe thread alerts  
Subject:Using bearer tokens with Twitter?
Summary:I have a bearer token. How can I use it with Twitter?
Messages:2
Author:Ben Ostrowsky
Date:2014-01-13 21:53:56
Update:2014-01-14 10:20:20
 

  1. Using bearer tokens with Twitter?   Reply   Report abuse  
Picture of Ben Ostrowsky Ben Ostrowsky - 2014-01-13 21:53:56
OK, so I've been using login_with_twitter.php and I've got my application working with the exception of authenticating with a bearer token. I assume I don't need to call Process() but only CallAPI() -- but where do I specify in CallAPI that I want to use a bearer token for authentication?

  2. Re: Using bearer tokens with Twitter?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-01-14 10:20:20 - In reply to message 1 from Ben Ostrowsky
If you mean passing parameters via an HTTP header, yes, currently Twitter seems to support that. I do not recall what was the problem in the past, but it seems to work now.

For now you can just the class to set the url_parameters class variable to true for Twitter in the Initialize function.