|
@@ -1596,8 +1596,10 @@ const TwitterApiCreateTweet = ({ text, tweet_Id }) => {
|
|
"x-twitter-client-language": "en"
|
|
"x-twitter-client-language": "en"
|
|
},
|
|
},
|
|
}).then(function (response) {
|
|
}).then(function (response) {
|
|
|
|
+ console.log('TwitterApiCreateTweet1', response)
|
|
chrome.runtime.sendMessage({ actionType: "DO_TASK", do_type: 'api', tweet_Id, task_type: 'createTweet', task_data: '', task_done: true, response })
|
|
chrome.runtime.sendMessage({ actionType: "DO_TASK", do_type: 'api', tweet_Id, task_type: 'createTweet', task_data: '', task_done: true, response })
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
|
|
+ console.log('TwitterApiCreateTweet2', err)
|
|
chrome.runtime.sendMessage({ actionType: "DO_TASK", do_type: 'api', tweet_Id, task_type: 'createTweet', task_data: '', task_done: false })
|
|
chrome.runtime.sendMessage({ actionType: "DO_TASK", do_type: 'api', tweet_Id, task_type: 'createTweet', task_data: '', task_done: false })
|
|
});
|
|
});
|
|
}
|
|
}
|