New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Direct message new API returning NULL #714
Comments
Try |
Hi |
I don't see any obvious reasons why this wouldn't work. Two things that to check is that you are using the latest version of TwitterOAuth and that the person you are sending the DM to has authorized the sender to contact them. |
There is a space end of new message endpoint, checking actual code for this space can be helpful maybe. Also this space exists in the JSON data part of https://twitteroauth.com/ main page doc.
|
Ya, the extra space at the end of the path will likely cause issues. |
I have removed the extra space still the same issue exists, do anyone is still facing the null return value issue (:-1: |
I just copied the code you have and there are multiple places with with trailing spaces. After fixing them sending direct messages worked fine.
|
Im facing the same issue.
$data is correct, but $tw returns null, if i put the old endpoint i get a response from the twitter api but if i put the new endpoint i get a null and this error: Array to string conversion [APP/Vendor/twitteroauth/twitteroauth/twitteroauth.php, line 223] |
HI @abraham Thanks for all the help and time you invested for my code debugging. It started working now. Again thanks a lot for all your help and cooperation :) |
What you did to solve it? |
@CesarNatic this API is only supported in version 0.9 and later. |
Thanks so much @abraham, updated to last version and worked like butter. :) Nice library btw. |
Am using 0.9.2, and still receiving NULL response!
` am sending to a user that following me, and i always contact him through Direct Meassage :( |
@awadhajj Your API path string has a space in it |
Hi Sir
I am using the following code and library functions to use twitter API's
Always it returns NULL for each library, please guide me how to run the to fetch various API result and send the direct message event new.
The text was updated successfully, but these errors were encountered: