File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ codebird-php - changelog
3
3
4
4
3.2.0 (not yet released)
5
5
+ #161 Update oembed API method endpoint
6
+ + Update to Twitter Ads API Version 1
6
7
7
8
3.1.0 (2016-02-15)
8
9
+ #143 Add support for proxy types
Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ class Codebird
68
68
*/
69
69
protected static $ _endpoints = [
70
70
'ads ' => [
71
- 'production ' => 'https://ads-api.twitter.com/0 / ' ,
72
- 'sandbox ' => 'https://ads-api-sandbox.twitter.com/0 / '
71
+ 'production ' => 'https://ads-api.twitter.com/1 / ' ,
72
+ 'sandbox ' => 'https://ads-api-sandbox.twitter.com/1 / '
73
73
],
74
74
'media ' => 'https://upload.twitter.com/1.1/ ' ,
75
75
'publish ' => 'https://publish.twitter.com/ ' ,
Original file line number Diff line number Diff line change @@ -270,15 +270,15 @@ public function testGetEndpoint()
270
270
'ton/bucket/:bucket '
271
271
);
272
272
$ this ->assertEquals (
273
- 'https://ads-api.twitter.com/0 /accounts/1234/campaigns ' ,
273
+ 'https://ads-api.twitter.com/1 /accounts/1234/campaigns ' ,
274
274
$ cb ->call (
275
275
'_getEndpoint ' ,
276
276
['ads/accounts/1234/campaigns ' , 'ads/accounts/:account_id/campaigns ' ]
277
277
),
278
278
'ads/accounts/:account_id/campaigns '
279
279
);
280
280
$ this ->assertEquals (
281
- 'https://ads-api-sandbox.twitter.com/0 /accounts/1234/campaigns ' ,
281
+ 'https://ads-api-sandbox.twitter.com/1 /accounts/1234/campaigns ' ,
282
282
$ cb ->call (
283
283
'_getEndpoint ' ,
284
284
['ads/sandbox/accounts/1234/campaigns ' , 'ads/sandbox/accounts/:account_id/campaigns ' ]
You can’t perform that action at this time.
0 commit comments