8000 Add Ads Sandbox API POST accounts method · StudioRyuLLC/codebird-php@6bb725b · GitHub
[go: up one dir, main page]

Skip to content

Commit 6bb725b

Browse files
committed
Add Ads Sandbox API POST accounts method
1 parent 5fee6b7 commit 6bb725b

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ codebird-php - changelog
55
+ #161 Update oembed API method endpoint
66
+ Update to Twitter Ads API Version 1
77
+ Add Ads API POST tailored_audience_memberships method
8+
+ Add Ads Sandbox API POST accounts method
89

910
3.1.0 (2016-02-15)
1011
+ #143 Add support for proxy types

src/codebird.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ class Codebird
358358
'ads/batch/accounts/:account_id/line_items',
359359
'ads/batch/accounts/:account_id/tailored_audiences',
360360
'ads/batch/accounts/:account_id/targeting_criteria',
361+
'ads/sandbox/accounts',
361362
'ads/sandbox/accounts/:account_id/account_media',
362363
'ads/sandbox/accounts/:account_id/app_lists',
363364
'ads/sandbox/accounts/:account_id/campaigns',

test/detection_tests.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ public function testDetectMethod2()
6060

6161
// normal detection
6262
$params = [];
63+
$post = ['httpmethod' => 'POST'];
6364
$this->assertEquals('GET', $cb->call('_detectMethod', 'search/tweets', $params));
6465
$this->assertEquals('POST', $cb->call('_detectMethod', 'statuses/update', $params));
66+
$this->assertEquals('POST', $cb->call('_detectMethod', 'ads/sandbox/accounts', $post));
6567
$this->assertEquals(
6668
'PUT',
6769
$cb->call(

0 commit comments

Comments
 (0)
0