-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
When i try to delete an article i get this error:
PHP Notice: Array
(
[code] => 401
[message] => HTTP/1.1 401 Unauthorized
[response] => stdClass Object
(
[errors] => Array
(
[0] => stdClass Object
(
[code] => WRONG_SIGNATURE
)
)
)
)
What's weird is that before I delete it, I get the news over Get method, this is my code:
if ($item['AppleArticle']['status'] == 'deleted') {
$response_get = $PublisherAPI->Get('/articles/{article_id}',
array(
'article_id' => $item['AppleArticle']['appleId']
)
);
if (isset($response_get->data->id)) {
$response_delete = $PublisherAPI->Delete('/articles/{article_id}',
array(
'article_id' => $response_get->data->id
)
);
Metadata
Metadata
Assignees
Labels
No labels