Socialmetrica/Socialmetrica.package/TwitterAPI.class/instance/userIDFrom..st

5 lines
193 B
Smalltalk
Raw Permalink Normal View History

queries
userIDFrom: username
| rawResponse |
rawResponse := self rawResponseForURL: self usersBaseEndPoint, 'by/username/', username.
^ (STONJSON fromString: rawResponse) at: 'data' at: 'id'