You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TwitterOAuth is very nice tool to connect to the Twitter API, but I really mis connecting the Ads API and now API V2. For Twitter Ads API is an issue for, but it's already 3 years old. I understand if you don't have time for it, but can I make an PR with these changes:
And change these methods (also put, post, upload, etc):
public function get(string $path, array $parameters = [])
{
return $this->http('GET', self::API_HOST, $path, $parameters, false);
}
To:
public function get(string $path, array $parameters = [])
{
$url = $this->getUrl(self::API_HOST, $path);
return $this->http('GET', $url, $parameters, false);
}
As far as I can see, it will be BC (but I have to test that). With the method "http" being protected I can extends this class and only change the getUrl method to support API V2 or Twitter Ads API.
TwitterOAuth is very nice tool to connect to the Twitter API, but I really mis connecting the Ads API and now API V2. For Twitter Ads API is an issue for, but it's already 3 years old. I understand if you don't have time for it, but can I make an PR with these changes:
And change it to (with protected possible to override):
Create new method:
And change these methods (also put, post, upload, etc):
To:
As far as I can see, it will be BC (but I have to test that). With the method "http" being protected I can extends this class and only change the getUrl method to support API V2 or Twitter Ads API.
Or:
Twitter Ads doesn't accept .json at the end of the URL.
Please let me know! I can an PR for this.
The text was updated successfully, but these errors were encountered: