{"id":21124748,"url":"https://github.com/zyra/cordova-plugin-pinterest","last_synced_at":"2025-06-24T21:35:44.354Z","repository":{"id":57208759,"uuid":"77589113","full_name":"zyra/cordova-plugin-pinterest","owner":"zyra","description":"Cordova plugin for Pinterest","archived":false,"fork":false,"pushed_at":"2017-09-11T14:49:28.000Z","size":132,"stargazers_count":10,"open_issues_count":6,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-11T19:42:30.821Z","etag":null,"topics":["cordova-plugin","ionic-plugin","phonegap-plugin","pinterest","pinterest-api","pinterest-sdk"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zyra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-29T06:33:45.000Z","updated_at":"2022-03-07T04:21:48.000Z","dependencies_parsed_at":"2022-09-04T02:02:01.241Z","dependency_job_id":null,"html_url":"https://github.com/zyra/cordova-plugin-pinterest","commit_stats":null,"previous_names":["zyramedia/cordova-plugin-pinterest"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyra%2Fcordova-plugin-pinterest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyra%2Fcordova-plugin-pinterest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyra%2Fcordova-plugin-pinterest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyra%2Fcordova-plugin-pinterest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zyra","download_url":"https://codeload.github.com/zyra/cordova-plugin-pinterest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225465487,"owners_count":17478564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cordova-plugin","ionic-plugin","phonegap-plugin","pinterest","pinterest-api","pinterest-sdk"],"created_at":"2024-11-20T04:17:54.090Z","updated_at":"2024-11-20T04:17:54.733Z","avatar_url":"https://github.com/zyra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/l/cordova-plugin-pinterest.svg)](https://www.npmjs.com/package/cordova-plugin-pinterest/)\n[![npm](https://img.shields.io/npm/dt/cordova-plugin-pinterest.svg)](https://www.npmjs.com/package/cordova-plugin-pinterest)\n[![npm](https://img.shields.io/npm/dm/cordova-plugin-pinterest.svg)](https://www.npmjs.com/package/cordova-plugin-pinterest)\n\n# Cordova Pinterest Plugin\nCordova plugin for Pinterest\n\n## Platforms\nThis plugin supports Android and iOS\n\n## Installation\n```shell\ncordova plugin add cordova-plugin-pinterest --variable APP_ID=YOUR_APP_ID\n\n// or \n\ncordova plugin add https://github.com/zyramedia/cordova-plugin-pinterest --variable APP_ID=YOUR_APP_ID\n\n```\n\n## Usage\n\nYou can access the plugins functions via the global variable `cordova.plugins.Pinterest`.\n\n## Example\n\n```javascript\n\nfunction onSuccess(response) {\n    console.log('Success, the response is: ', reponse);\n}\n\nfunction onError(errorMessage) {\n    console.error('Error, the error message is: ', errorMessage);\n}\n\nvar scopes = [\n    cordova.plugins.Pinterest.SCOPES.READ_PUBLIC,\n    cordova.plugins.Pinterest.SCOPES.WRITE_PUBLIC,\n    cordova.plugins.Pinterest.SCOPES.READ_RELATIONSHIPS,\n    cordova.plugins.Pinterest.SCOPES.WRITE_RELATIONSHIPS\n];\n\n// lets login first\ncordova.plugins.Pinterest.login(scopes, onSuccess, onError);\n\n// after logging in, we can perform any other function\n// for the sake of a clean example, this code is here, but you should wait for the login function to succeed first\ncordova.plugins.Pinterest.getMyPins(onSuccess, onError);\n\n```\n\n## Methods\n\n#### login\n```javascript\nlogin(scopes, onSuccess, onError)\n```\n  - **scopes**: List of permissions to request. You can use `cordova.plugins.Pinterest.SCOPES` constants for convenience. Available permissions are: `read_public`, `write_public`, `read_relationships`, `write_relationships`.\n\nLogs the user in. The response object will contain the user's profile data, as well as the access token (if you need to use it elsewhere, example: send it to your server and perform actions on behalf of the user).\n\n\n#### getMe\n```javascript\ngetMe(onSuccess, onError, fields)\n```\n- **fields**: (optional) Fields to retrieve, separated by commas. Defaults to all available fields.\n\nGets the authenticated user's profile.\n\n#### getMyPins\n```javascript\ngetMyPins(onSuccess, onError, fields, limit)\n```\n- **fields**: (optional) Fields to retrieve, separated by commas. Defaults to all available fields.\n- **limit**: (optional) Limit the number of items returned. Capped to 100. Defaults to 100.\n\nGets the authenticated user's Pins.\n\n#### getMyBoards\n```javascript\ngetMyBoards(onSuccess, onError, fields, limit)\n```\n- **fields**: (optional) Fields to retrieve, separated by commas. Defaults to all available fields.\n- **limit**: (optional) Limit the number of items returned. Capped to 100. Defaults to 100.\n\nGet the authenticated user's boards.\n\n#### getMyLikes\n```javascript\ngetMyLikes(onSuccess, onError, fields, limit)\n```\n- **fields**: (optional) Fields to retrieve, separated by commas. Defaults to all available fields.\n- **limit**: (optional) Limit the number of items returned. Capped to 100. Defaults to 100.\n\nGet the authenticated user's likes.\n\n#### getMyFollowers\n```javascript\ngetMyFollowers(onSucccess, onError, fields, limit)\n```\n- **fields**: (optional) Fields to retrieve, separated by commas. Defaults to all available fields.\n- **limit**: (optional) Limit the number of items returned. Capped to 100. Defaults to 100.\n\nGet the authenticated user's followers.\n\n#### getMyFollowedBoards\n```javascript\ngetMyFollowedBoards(onSuccess, onError, fields, limit)\n```\n- **fields**: (optional) Fields to retrieve, separated by commas. Defaults to all available fields.\n- **limit**: (optional) Limit the number of items returned. Capped to 100. Defaults to 100.\n\nGet the authenticated user's followed boards.\n\n#### getMyFollowedInterests\n```javascript\ngetMyFollowedInterests(onSuccess, onError, fields, limit)\n```\n- **fields**: (optional) Fields to retrieve, separated by commas. Defaults to all available fields.\n- **limit**: (optional) Limit the number of items returned. Capped to 100. Defaults to 100.\n\nGet the authenticated user's followed interests.\n\n#### getUser\n```javascript\ngetUser(username, onSuccess, onError, fields)\n```\n- **username**: Username of the user\n- **fields**: (optional) Fields to retrieve, separated by commas. Defaults to all available fields.\n\nGet a user's profile.\n\n#### getBoard\n```javascript\ngetBoard(boardId, onSuccess, onError, fields)\n```\n- **boardId**: The ID of the board\n- **fields**: (optional) Fields to retrieve, separated by commas. Defaults to all available fields.\n\nGet a board's data.\n\n#### getBoardPins\n```javascript\ngetBoardPins(boardId, onSuccess, onError, fields, limit)\n```\n- **boardId**: The ID of the board\n- **fields**: (optional) Fields to retrieve, separated by commas. Defaults to all available fields.\n- **limit**: (optional) Limit the number of items returned. Capped to 100. Defaults to 100.\n\nGet Pins of a specific board.\n\n#### deleteBoard\n```javascript\ndeleteBoard(boardId, onSuccess, onError)\n```\n- **boardId**: The ID of the board\n\nDelete a board.\n\n#### createBoard\n```javascript\ncreateBoard(name, desc, onSuccess, onError)\n```\n- **name**: Name of the board\n- **desc**: (optional) Description of the board\n\nCreate a new board for the authenticated user.\n\n#### getPin\n```javascript\ngetPin(pinId, onSuccess, onError, fields)\n```\n- **pinId**: The ID of the Pin\n- **fields**: (optional) Fields to retrieve, separated by commas. Defaults to all available fields.\n\nGet a Pin by ID.\n\n#### deletePin\n```javascript\ndeletePin(pinId, onSuccess, onError)\n```\n- **pinId**: The ID of the Pin\n\nDelete a Pin.\n\n#### createPin\n```javascript\ncreatePin(note, boardId, imageUrl, link, onSuccess, onError)\n```\n- **note**: Note/Description of the Pin\n- **boardId**: Board ID to put the Pin under\n- **imageUrl**: URL of the image to share\n- **link**: (optional) Link to share\n\nCreate a Pin for the authenticated user.\n\n\n\n---\n\n\n\n## Quirks\n\n- This plugin does not provide any pagination features. You are limited only to the latest 100 entries and you cannot fetch the next pages. This can be fixed but it will make this API more complicated. It can be added if demanded by many users.\n\n\u003cbr\u003e\u003cbr\u003e\n## Contribution\n- **Having an issue**? or looking for support? [Open an issue](https://github.com/zyra/cordova-plugin-pinterest/issues/new) and we will get you the help you need.\n- Got a **new feature or a bug fix**? Fork the repo, make your changes, and submit a pull request.\n\n## Support this project\nIf you find this project useful, please star the repo to let people know that it's reliable. Also, share it with friends and colleagues that might find this useful as well. Thank you :smile:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyra%2Fcordova-plugin-pinterest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzyra%2Fcordova-plugin-pinterest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyra%2Fcordova-plugin-pinterest/lists"}