FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rocketapi-python/examples_threads.py at main · rocketapi-io/rocketapi-python · GitHub
rocketapi-io
/
rocketapi-python
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
43
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
rocketapi-python
/
examples_threads.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (12 loc) · 399 Bytes
Breadcrumbs
rocketapi-python
/
examples_threads.py
Copy path
File metadata and controls
14 lines (12 loc) · 399 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from
rocketapi
import
ThreadsAPI
from
rocketapi
.
exceptions
import
NotFoundException
,
BadResponseException
api
=
ThreadsAPI
(
token
=
"put your token here"
)
# Get user feed by id
user_id
=
35670846775
try
:
user
=
api
.
get_user_feed
(
user_id
)
print
(
user
)
except
NotFoundException
:
print
(
f"User
{
user_id
}
not found"
)
except
BadResponseException
:
print
(
f"Can't get
{
user_id
}
feed from API"
)
Back
|
FazBrowse Home
|
New Git URL