https://github.com/andrewarrow/gnr
https://github.com/andrewarrow/gnr
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrewarrow/gnr
- Owner: andrewarrow
- Created: 2024-07-09T13:02:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T08:04:27.000Z (about 2 years ago)
- Last Synced: 2025-03-02T10:22:42.042Z (over 1 year ago)
- Language: JavaScript
- Size: 653 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gnr
curl -X POST "https://www.reddit.com/api/v1/access_token" \
--user "key:secret" \
-d "grant_type=password&username=%s&password=%s&scope=creddits,modcontributors,modconfig,subscribe,wikiread,wikiedit,vote,mysubreddits,submit,modlog,modposts,modflair,save,modothers,read,privatemessages,report,identity,livemanage,account,modtraffic,edit,modwiki,modself,history,flair" \
-H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0"
curl -H "Authorization: Token $ACCESS_TOKEN" "https://api.reddit.com/r/gunsnroses/new"
```
#curl -H "Authorization: Token " "https://www.oauth.reddit.com/api/comment -H "Content-Type: application/json" -d '{"parent_id": "123q", "author": "Jane Doe", "text": "This is a reply to the main parent."}'
curl -X POST \
-H "Authorization: Bearer $TOKEN" \
-H "User-Agent: 'MyApp/1.0.0 (by /u/andrewfromx)'" \
- H "Content-Type: application/x-www-form-urlencoded" \
-d "thing_id=t3_12456a" \
-d "text=I like rings." \
https://oauth.reddit.com/api/comment
```