Socialmetrica/Datanalitica.package/TwitterAPI.class/instance/userMentionsFor..st

7 lines
384 B
Smalltalk
Raw Normal View History

accessing
userMentionsFor: username
| rawResponse queryURL parameters |
"The following query gets the last tweets, that is the maximun allowed for a particular user without pagination:"
queryURL := self usersBaseEndPoint, (self userIDFrom: username), '/mentions', self defaultQueryParameters.
rawResponse := self rawResponseForURL:queryURL.
^ (STONJSON fromString: rawResponse)