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

5 lines
193 B
Smalltalk

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