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

Support the Ads API #382

Closed
abraham opened this Issue Jul 17, 2015 · 6 comments

Comments

Projects
None yet
4 participants
@abraham
Owner

abraham commented Jul 17, 2015

This would probably be a breaking change and would likely result in an API that looks something like this.

$twt = new TwitterOAuth(...);
$ads = $twt->ads->get(...); // Ads request
$statuses = $twt->api->get(...); // REST API request

@abraham abraham added the Explore label Jul 17, 2015

@esthezia

This comment has been minimized.

esthezia commented Sep 10, 2015

Hi Abraham! For now, you could only change TwitterOAuth.php and access API_HOST by static::API_HOST instead of self::API_HOST, and the same for API_VERSION. This, to be able to overwrite these in an extending class. And this seems to suffice to be able to use this library for working with Ads API.

I've done this locally and it works with only these changes made.

@abraham abraham added the Available label Oct 15, 2015

@rossbg

This comment has been minimized.

rossbg commented Nov 17, 2015

Hello,

I think this should be top pri :) Any timeframe to share? Thanks :)

@idlikesometea

This comment has been minimized.

idlikesometea commented Nov 24, 2015

Exactly what should I change to connect to ADS Api? I've changed the self to statics and the API_HOST to https://ads-api.twitter.com but i keep getting a ROUTE_NOT_FOUND error. Any clue? Thanks in advance

@rossbg

This comment has been minimized.

rossbg commented Nov 24, 2015

you should change API_VERSION to "0"

@idlikesometea

This comment has been minimized.

idlikesometea commented Nov 24, 2015

Thanks!

@abraham abraham added this to the v2.0 milestone Feb 23, 2017

@abraham

This comment has been minimized.

Owner

abraham commented Jul 3, 2018

Moving to #684

@abraham abraham closed this Jul 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment