PubNio calls X’s GET /2/users/me (getUsersMe) to identify the X account a person just signed in with.
How PubNio calls it
- Connecting an account: after the sign-in that
POST /api/v1/integrations/{provider}/connectorPOST /api/v1/integrations/accounts/{accountId}/reconnectstarts, the sign-in callback makes this call before it saves the account. - PubNio asks only for
id,username,name, andprofile_image_url. The account is keyed byid; a missing username falls back to the ID and a missing name to the username.
Scopes
- The pinned spec lists 2 scopes, all required:
tweet.readandusers.read. - PubNio’s X sign-in requests every one of them.
Errors
PubNio has no X error code pages yet. Provider error codes covers the providers that have them.
Spec and changes
getUsersMe in the pinned spec, revision 2.175.
Checked weekly; no change to GET /2/users/me recorded since this revision. Change tracker.
Limits
- PubNio does not call it again to refresh a display name or avatar after the account is saved; reconnecting the account reads them again.