{"id":19112888,"url":"https://github.com/chipslays/pastly-api","last_synced_at":"2025-02-22T11:40:22.383Z","repository":{"id":62501849,"uuid":"371832965","full_name":"chipslays/pastly-api","owner":"chipslays","description":"🗒 Simple client implementation for Pastly API.","archived":false,"fork":false,"pushed_at":"2021-07-26T05:56:04.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-03T04:52:26.545Z","etag":null,"topics":["api","api-client","client","hastebin","pastebin","pastebin-api","pastebin-service","pastly"],"latest_commit_sha":null,"homepage":"https://pastly.cf","language":"PHP","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/chipslays.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":"2021-05-28T22:39:26.000Z","updated_at":"2021-07-26T05:56:07.000Z","dependencies_parsed_at":"2022-11-02T09:46:31.756Z","dependency_job_id":null,"html_url":"https://github.com/chipslays/pastly-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fpastly-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fpastly-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fpastly-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fpastly-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chipslays","download_url":"https://codeload.github.com/chipslays/pastly-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240170056,"owners_count":19759141,"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":["api","api-client","client","hastebin","pastebin","pastebin-api","pastebin-service","pastly"],"created_at":"2024-11-09T04:34:26.392Z","updated_at":"2025-02-22T11:40:22.361Z","avatar_url":"https://github.com/chipslays.png","language":"PHP","readme":"# 🗒 PHP Pastly API Client\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/chipslays/pastly-api/tests)\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/chipslays/pastly-api)\n![GitHub](https://img.shields.io/github/license/chipslays/pastly-api)\n\nSimple client implementation for [Pastly](https://pastly.chipslays.ru) API.\n\n\u003e **Pastly** - The sexiest pastebin in the Internet.\n\n## Installation\n\n```bash\ncomposer require chipslays/pastly-api\n```\n\n## Usage\n\n```php\nuse Pastly\\Client;\n\nrequire 'vendor/autoload.php';\n\n$client = new Client;\n$token = '1622233044:6bCVU-8OI9fjtk3gXhZRJkzQeDGsJNKti2MuBM_n9V';\n\n/** get paste */\n$paste = $client-\u003eget('example-slug');\n$paste = pastly_get('example-slug');\n\necho $paste-\u003egetText();\n\n/** create paste */\n$client-\u003ecreate($token, 'Hello, world!');\npastly_create($token, 'Hello, world!');\n\n/** edit paste */\n$client-\u003eedit($token, 'example-slug', [\n    'title' =\u003e 'New Title', \n    'syntax' =\u003e 'diff',\n    'text' =\u003e \"this text\\n-was edited\\n+successful\",\n]);\n\npastly_edit($token, 'example-slug', [\n    'title' =\u003e 'New Title', \n    'syntax' =\u003e 'diff',\n    'text' =\u003e \"this text\\n-was edited\\n+successful\",\n]);\n```\n\nMore code can see in [examples](/examples/) folder.\n\n## Examples\n\nExamples can be found [here](/examples/).\n\n## Tests\n\n```bash\ncomposer test\n```\n\n## Credits\n\n- [Chipslays](https://github.com/chipslays)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipslays%2Fpastly-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchipslays%2Fpastly-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipslays%2Fpastly-api/lists"}