diff --git a/src/TwitterAds/Cursor.php b/src/TwitterAds/Cursor.php index 01a8f22..37945e2 100644 --- a/src/TwitterAds/Cursor.php +++ b/src/TwitterAds/Cursor.php @@ -99,7 +99,7 @@ public function fetchNext($params = []) $response = $this->account->getTwitterAds()->put($this->account->getTwitterAds()->getResource(), $params); break; case 'DELETE': - $response = $this->account->getTwitterAds()->delete($this->account->getTwitterAds()->getResource(), $params); + $response = $this->account->getTwitterAds()->delete($this->account->getTwitterAds()->getResource()); break; default: $response = $this->account->getTwitterAds()->get($this->account->getTwitterAds()->getResource(), $params); diff --git a/src/TwitterAds/Resource.php b/src/TwitterAds/Resource.php index 6f60a16..634bc13 100644 --- a/src/TwitterAds/Resource.php +++ b/src/TwitterAds/Resource.php @@ -198,7 +198,7 @@ public function delete() { $resource = str_replace(static::RESOURCE_REPLACE, $this->account->getId(), static::RESOURCE); $resource = str_replace(static::RESOURCE_ID_REPLACE, $this->getId(), $resource); - $request = $this->account->getTwitterAds()->put($resource, $this->toParams()); + $request = $this->account->getTwitterAds()->delete($resource); $this->fromResponse($request->data); }