0
我想從我的Google Chrome擴展程序的後臺頁面發送一條直接消息。如何從Google Chrome擴展程序發送Twitter直接消息?
我閱讀了twitter文檔,但似乎沒有一個簡單的解決方案。
以前有人做過這個嗎?到目前爲止,我已經試過與此API https://dev.twitter.com/docs/api/1.1/post/direct_messages/new我有錯誤發送使用AJAX調用的消息400
$.ajax({
type: "POST",
url: "https://api.twitter.com/1.1/direct_messages/new.json",
data: {'text': 'Hello World', 'screen_name':'John'}
}).done(function(res) {
console.log(res);
});