teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

アカウントキー作成変更

2016/02/14 18:13

投稿

chitoku
chitoku

スコア1610

answer CHANGED
@@ -8,17 +8,14 @@
8
8
  * @param tweetId {String} - ツイートの ID。
9
9
  */
10
10
  function TDDestroyStatus(accountKey, tweetId) {
11
+ var account = {
12
+ getKey: function () {
13
+ return "twitter:" + accountKey;
14
+ },
15
+ };
11
16
  TD.services.TwitterStatus.prototype._action.call({
12
- account: {
17
+ account: account,
13
- getKey: function () {
14
- return "twitter:" + accountKey,
15
- },
16
- },
17
- creatorAccount: {
18
+ creatorAccount: account,
18
- getKey: function () {
19
- return "twitter:" + accountKey,
20
- },
21
- },
22
19
  id: tweetId,
23
20
  }, "delete");
24
21
  }