2021-07-26 12:46:45 +00:00
|
|
|
accessing
|
|
|
|
userEndPointFor: username selecting: tweetsOrMentions
|
|
|
|
"I build a shared URL for querying last 100 mentions or tweets for a particular user.
|
2021-08-13 00:58:41 +00:00
|
|
|
Second parameter should be only 'tweets' or 'mentions', dateString, if present, should be YYYY-MM-DD."
|
2021-08-20 03:43:03 +00:00
|
|
|
| commonQueryParameters userFields |
|
|
|
|
userFields := 'user.fields=username,name,description,profile_image_url'.
|
|
|
|
commonQueryParameters := '?expansions=author_id&tweet.fields=conversation_id,created_at&', userFields, '&max_results=100'.
|
2021-07-26 12:46:45 +00:00
|
|
|
^ self usersBaseEndPoint, (self userIDFrom: username), '/', tweetsOrMentions, commonQueryParameters
|