Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #160 from junhoyeo/junhoyeo/quote
Browse files Browse the repository at this point in the history
[docs] Update README.md
  • Loading branch information
junhoyeo authored Jul 14, 2023
2 parents 8431b13 + a1a6f16 commit f8973eb
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions threads-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,18 @@ await threadsAPI.publish({
</a>
</p>

#### ✨ Quote a Thread (from v1.4.2)

```ts
const threadURL = 'https://www.threads.net/t/CuqbBI8h19H';
const postIDToQuote = await threadsAPI.getPostIDfromURL(threadURL); // or use `getPostIDfromThreadID`

await threadsAPI.publish({
text: '🤖 Quote a Thread',
quotedPostID: postIDToQuote,
});
```

#### ✨ Like/Unlike a Thread (from v1.3.0)

```ts
Expand All @@ -659,6 +671,17 @@ await threadsAPI.follow(userIDToFollow);
await threadsAPI.unfollow(userIDToFollow);
```

#### ✨ Repost/Unrepost a Thread (from v1.4.2)

```ts
const threadURL = 'https://www.threads.net/t/CugK35fh6u2';
const postIDToRepost = await threadsAPI.getPostIDfromURL(threadURL); // or use `getPostIDfromThreadID`

// 💡 Uses current credentials
await threadsAPI.repost(postIDToRepost);
await threadsAPI.unrepost(postIDToRepost);
```

#### ✨ Delete a Post (from v1.3.1)

```ts
Expand Down

0 comments on commit f8973eb

Please sign in to comment.