Skip to content
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

Couldn't delete a welcome message #261

Closed
Nidalc opened this issue Jan 30, 2018 · 1 comment
Closed

Couldn't delete a welcome message #261

Nidalc opened this issue Jan 30, 2018 · 1 comment

Comments

@Nidalc
Copy link

Nidalc commented Jan 30, 2018

Hi everybody,

i use this library to interact withe the twitter api.

Here is my code used to delete a welcome_message :

$url = 'https://api.twitter.com/1.1/direct_messages/welcome_messages/destroy.json?id='.intval($message_id);

        $result = $this->twitter->buildOauth($url, "DELETE")->performRequest(true, [
            CURLOPT_HTTPHEADER => array('Content-Type:application/json'),
            CURLOPT_POSTFIELDS => json_encode(['id' => $message_id])
        ]);
        debug("DELETE WM");
        debug($result);

The result is empty, and when i list the welcome_messages, it is not deleted.

Thanks for your help.

@J7mbo
Copy link
Owner

J7mbo commented Aug 16, 2018

As this is an old issue, I'm closing it, but if you still feel that something needs to be addressed, please feel free to reopen or open a new issue, I'll put it as a higher priority, and we'll solve it together! :)

@J7mbo J7mbo closed this as completed Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants