jublo / codebird-php

Easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library.
https://www.jublo.net/projects/codebird/php
GNU General Public License v3.0
775 stars 237 forks source link

Suddenly receiving 500 errors when retrieving profile #238

Closed vabiro closed 5 years ago

vabiro commented 5 years ago

Hi, I am using Codebird to retrieve twitter profile information, like ID and profile pictures. It has been working for the past few weeks, but I am suddenly getting 500 errors. Is there a way to determine the cause of the 500 error? Here is the function that I am using: ` function get_twitter_user_profile($tw_screen_name){ \Codebird\Codebird::setConsumerKey('YOURKEY', 'YOURSECRET'); // static, see README $cb = \Codebird\Codebird::getInstance(); $cb->setToken('YOURTOKEN', 'YOURTOKENSECRET'); $cb->setUseCurl(false); $reply = $cb->users_show("screen_name=$tw_screen_name"); $id=$reply->profile_image_url_https; return $id ;

 }

`

Here is the response I am getting: stdClass Object ( [httpstatus] => 500 [rate] => )

mynetx commented 5 years ago

@vabiro Can you still reproduce this?

mynetx commented 5 years ago

Closing since there were no further replies.