PubNio calls Pinterest’s GET /user_account (user_account/get) to identify the signed-in Pinterest account and read its followers.
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. - Account analytics: the account sync makes this call;
GET /api/v1/workspaces/{workspaceId}/analytics/accounts/{accountId}returns what it stored. - At sign-in the account’s ID becomes the connection’s subject, and its profile image becomes the avatar of every board PubNio connects.
- For account analytics PubNio reads the follower count from the same endpoint. It stores
follower_countwhen Pinterest returns a number and leaves it out when the count is null. - A response without an
idis refused;usernameandprofile_imageare optional.
Scopes
- The pinned spec lists one scope:
user_accounts:read. - PubNio’s Pinterest sign-in requests every one of them.
- Before the account analytics sync makes this call, PubNio checks that the account granted
pins:readanduser_accounts:read.
Errors
PubNio has no Pinterest error code pages yet. Provider error codes covers the providers that have them.
Spec and changes
user_account/get in the pinned spec, revision 5c6c1fc9a6dbdee1df537f3f805f09262c496917.
Refreshed by hand: no weekly change record.
Limits
- PubNio connects boards, not the account: the account itself is never a publishing destination.