Closed birdbreath closed 3 years ago
added: echo "$twitter->buildOauth($url, $method)";
result: (https://upload.twitter.com/1.1/media/upload.json, POST)
Hi. I don't think anyone is going to look at the picture of your code and type it out character by character so they can test it.
So others can help you better, it might be better to paste the actual code into the box. The github docs can help you format your code here.
However, I can see right from the get that you have not initialised the $twitter
variable to anything when you try and use it for the first time. It doesn't exist yet. You need to create it.
Call to a member function buildOauth() on null.
You're trying to call buildOauth
on null, something that doesn't exist. You want to be calling that on something that does exist.
Great catch. I totally missed it. It worked perfectly. Thanks
And in there future I will be including text samples
Returns:
Fatal error: Uncaught Error: Call to a member function buildOauth() on null. .....line 32
Any idea why?
idea why?
_Originally posted by @birdbreath in https://github.com/J7mbo/twitter-api-php/issue_comments/703965687_