Stored Procedures
Stored procedures are function-like interfaces that extend the functionality of the connector beyond simple SELECT operations with Pinterest.
Stored procedures accept a list of parameters, perform their intended function, and then return any relevant response data from Pinterest, along with an indication of whether the procedure succeeded or failed.
CData Python Connector for Pinterest Stored Procedures
| Name | Description |
| CreateAdPreviewFromImage | Create an ad preview given an ad account ID and the URL of an image to be used to create the Pin and the ad. |
| CreateAdPreviewFromPin | Create an ad preview using an existing Pin, given an ad account ID and a Pin ID. |
| CreateAdPreviewShopping | Create a shopping ad preview given an ad account ID, catalog product group ID, and creative type. |
| CreateCustomerListUpload | Create a customer list upload request for multipart S3 upload. Each part must be at least 5 MB; the last part can be any size greater than 0. |
| GetLocalInventoryItems | Get local inventory items for a catalog. Provide an array of item_id and store_code pairs to identify items. Up to 1000 items per request. |
| GetOAuthAccessToken | Gets an authentication token from Pinterest. |
| GetOAuthAuthorizationURL | Gets the authorization URL that must be opened separately by the user to grant access to your application. Only needed when developing Web apps. You will request the OAuthAccessToken from this URL. |
| RefreshOAuthAccessToken | Refreshes the OAuth access token from Pinterest. |
| RunCustomerListUpload | Start processing a customer list upload. Returns the updated upload metadata once processing has begun. |
| SavePin | Save a Pin to a board or board section owned by the operation user account. |
| VerifyWebsite | Verify a website as a signed-in user. |