Skip to content

Commit cc250a8

Browse files
authored
Merge pull request #22 from tcaldwell-x/sparack/add_community_notes_docs
Added fields and expansions section and resources
2 parents 40d6bc9 + b3d16e7 commit cc250a8

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

x-api/community-notes/quickstart.mdx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ oauth = OAuth1Session(
4242
resource_owner_secret='REPLACE_ME',
4343
)
4444

45-
4645
# Make the request
4746
try:
4847
response = oauth.get(url, params=params)
@@ -91,7 +90,9 @@ The response will be something like:
9190
}
9291
```
9392

94-
You can use the Post ID from the response above to write a Community Note.
93+
You can use the Post ID from the response above to write a Community Note.
94+
95+
By default, you get Post id, text and edit history. If you want additional fields, you can use [fields](https://docs.x.com/x-api/fundamentals/fields) and [expansions](https://docs.x.com/x-api/fundamentals/expansions)
9596

9697
## Search for Community Notes that have been written on X Posts
9798

@@ -328,4 +329,8 @@ Below is a list of common error messages and resolutions when working with the C
328329
}
329330
```
330331

331-
**Explanation**: This error is returned when a user tries to make duplicate Community Notes
332+
**Explanation**: This error is returned when a user tries to make duplicate Community Notes
333+
334+
## Resources
335+
336+
You can find code samples in other programming languages on our [Github page](https://github.com/xdevplatform/Twitter-API-v2-sample-code). You can also get started with these API endpoints using our [Postman collection](https://www.postman.com/xapidevelopers). If you have any technical questions about these endpoints, please feel free to reach out to us on the [X Developer Community support forums](https://devcommunity.x.com/).

0 commit comments

Comments
 (0)