I am playing around with python. To be specific:
I am looking this API docs:
Discourse API Docs / Discourse API Docs
I am new (learning) with Python, and am trying to simply receive the posts if @UserA gets mentioned somewhere. I was thinking I need to get the post_number from the notifications, and then query that post, to retrieve and store the post content.
From there I want to store that post content, as a data variable and from there experiment with some things.
A part of my code is this:
# lookup mentions
mention = client.notifications.json.get()
# print the posts
for post_number in mention:
print(post_number)
The current output of this code:
notifications
total_rows_notifications
seen_notification_id
load_more_notifications
Sorry if this is a stupid question, I am relatively new with API’s and even newer with Python. I have been working with this all day without success, if anyone can point me in the right direction, that would be highly appreciated.