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

No response deleting DM #287

Closed
kzu404 opened this issue Jan 11, 2020 · 1 comment
Closed

No response deleting DM #287

kzu404 opened this issue Jan 11, 2020 · 1 comment

Comments

@kzu404
Copy link

kzu404 commented Jan 11, 2020

function delete($id) {
	$url = 'https://api.twitter.com/1.1/direct_messages/events/destroy.json';
	$requestMethod = 'DELETE';
	$postfields = array(
    'id' => $id);

/** Perform a POST request and echo the response ***/
echo $twitter->buildOauth($url, $requestMethod)
             ->setPostfields($postfields)
             ->performRequest();
}

im trying to delete DM from someone but no response, can you help me to fix it?
thanks

@kzu404
Copy link
Author

kzu404 commented Jan 11, 2020

my bad its working now

@kzu404 kzu404 closed this as completed Jan 11, 2020
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

1 participant