{"id":16517812,"url":"https://github.com/rancoud/rpinterestbot","last_synced_at":"2025-03-02T19:40:42.464Z","repository":{"id":80410644,"uuid":"47473735","full_name":"rancoud/RPinterestBot","owner":"rancoud","description":"Bot For Pinterest","archived":false,"fork":false,"pushed_at":"2022-03-08T08:34:13.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T19:44:31.675Z","etag":null,"topics":[],"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/rancoud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-05T21:41:03.000Z","updated_at":"2023-05-21T20:00:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa5bf81d-ac45-4cb8-a4f3-f0ea67f79a3b","html_url":"https://github.com/rancoud/RPinterestBot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rancoud%2FRPinterestBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rancoud%2FRPinterestBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rancoud%2FRPinterestBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rancoud%2FRPinterestBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rancoud","download_url":"https://codeload.github.com/rancoud/RPinterestBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241564432,"owners_count":19982958,"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":[],"created_at":"2024-10-11T16:33:46.867Z","updated_at":"2025-03-02T19:40:42.458Z","avatar_url":"https://github.com/rancoud.png","language":"JavaScript","readme":"# RPinterestBot\nBot for Pinterest\n\n## Setup\n1. Create Pinterest application\n2. Rename conf.pinterest.app.sample.js to conf.pinterest.app.js\n3. Fill the file with **name** , **consumer_key** , **consumer_secret** , **access_token** (**callback_url** and **scope** is for user authentification)\n4. Create your job in folder jobs\n\n## Example\nOnce your pinterest application created you can run job.\n```\nnode job me\n```\n\n## How to write job\n1. Create a file in jobs folder, the filename is the job name\n2. In job get a Pinterest app by using ```getPinterestApp(name, endpoints)```\n  * if you provide no arguments the first Pinterest app is returned\n  * name (string or undefined - optionnal) : using a specific Pinterest app\n  * endpoints (array - optionnal) : return an available Pinterest app which can use thoses endpoints (rate limit)\n\n## PID watcher and killer\nJobs'list running (pid + job + options)\n```\nnode pid\n```\nKill a job\n```\nnode pid kill {pidId}\n```\nKill all jobs\n```\nnode pid kill all\n```\n\n## JOBS\n* example -\u003e do nothing\n* me -\u003e return authenticated user information\n* my_boards -\u003e return authenticated user’s public boards\n* get_pins_in_board -\u003e returns list of Pins on the board\n* valid_board -\u003e check if argument provided is a valid board\n* valid_user -\u003e check if argument provided is a valid_user\n\n## Pinterest User Authentification\nGetting access token for external user with an app.  \n```\nnode save_oauth \"myapp\"\n```\n*(if app name argument is not provided the first one in conf is picked)*  \nA server will be up at 127.0.0.1 on port 3000.  \nWhen callback is done a file is created in oauth_access_cache like this: screen_name.tok  \nIt will contain the app name, access token and access token secret.  \n\n## Optionnal arguments\n```\n// user to use (require getting access token)\n-u OR --user \"myuser\"\n// pinterest app to use\n-a OR --app \"myapp\"\n// file to upload\n-f OR --file \"/path/to/file\"\n```\n**for user argument use in lower case the screen name of the account**  \n\n## Documentation Pinterest API\nList of endpoints (GET / POST / PATCH / DELETE)\n```\nnode doc\n```\nList of endpoints (GET only)\n```\nnode doc get\n```\nList of endpoints (POST only)\n```\nnode doc post\n```\nList of endpoints (PATCH only)\n```\nnode doc patch\n```\nList of endpoints (DELETE only)\n```\nnode doc delete\n```\nEndpoint details\n```\nnode doc \"/v1/me/\"\n```\nList of parameters\n```\nnode doc parameters\n```\nTest endpoint (GET and POST)\n```\nnode doc test \"/v1/me/\"\n```\n\n## LIMITS\nSandbox: 200 calls / 60 minutes / token  \nLive: 1000 calls / 60 minutes / token  \n\nUrl images in 60x60 in sandbox  \n\nCan't see private board (will be never support by pinterest team)  \n\nList of Scopes  \n* read_public : Use GET method on a user’s Pins, boards and likes.  \n* write_public : Use PATCH, POST and DELETE methods on a user’s Pins and boards.  \n* read_relationships : Use GET method on a user’s follows and followers (on boards, users and interests).  \n* write_relationships : Use PATCH, POST and DELETE methods on a user’s follows and followers (on boards, users and interests).  \n\n## TODO\n* add explanations for all\n* refactor doc.js (add search more powerful)\n* refactor classes and add folders\n* save_oauth add port + scope","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Francoud%2Frpinterestbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Francoud%2Frpinterestbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Francoud%2Frpinterestbot/lists"}