{"id":18482062,"url":"https://github.com/sigwinhq/reddit-client","last_synced_at":"2025-07-27T20:04:55.884Z","repository":{"id":56084583,"uuid":"288778937","full_name":"sigwinhq/reddit-client","owner":"sigwinhq","description":"PHP Reddit SDK, autogenerated by OpenAPI Generator","archived":false,"fork":false,"pushed_at":"2025-05-16T08:21:55.000Z","size":170,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T09:28:07.735Z","etag":null,"topics":["autogenerated","openapi-generator","php","reddit-client","sdk"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sigwinhq.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,"zenodo":null}},"created_at":"2020-08-19T16:12:43.000Z","updated_at":"2025-05-16T08:20:52.000Z","dependencies_parsed_at":"2025-05-16T09:26:00.903Z","dependency_job_id":"628bc8a0-9a54-4a0a-84b0-8bd6a57fcf16","html_url":"https://github.com/sigwinhq/reddit-client","commit_stats":{"total_commits":34,"total_committers":3,"mean_commits":"11.333333333333334","dds":0.1470588235294118,"last_synced_commit":"d62df6e54b857a88dca28842a9826251e65e55f3"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/sigwinhq/reddit-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigwinhq%2Freddit-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigwinhq%2Freddit-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigwinhq%2Freddit-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigwinhq%2Freddit-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sigwinhq","download_url":"https://codeload.github.com/sigwinhq/reddit-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigwinhq%2Freddit-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267417664,"owners_count":24083839,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["autogenerated","openapi-generator","php","reddit-client","sdk"],"created_at":"2024-11-06T12:26:46.597Z","updated_at":"2025-07-27T20:04:55.879Z","avatar_url":"https://github.com/sigwinhq.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RedditClient\n\nReddit.com API\n\nFor more information, please visit [https://ssl.reddit.com/dev/api](https://ssl.reddit.com/dev/api).\n\n## Installation \u0026 Usage\n\n### Requirements\n\nPHP 8.1 and later.\n\n### Composer\n\nTo install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`:\n\n```json\n{\n  \"repositories\": [\n    {\n      \"type\": \"vcs\",\n      \"url\": \"https://github.com/sigwin/reddit-client.git\"\n    }\n  ],\n  \"require\": {\n    \"sigwin/reddit-client\": \"*@dev\"\n  }\n}\n```\n\nThen run `composer install`\n\n### Manual Installation\n\nDownload the files and include `autoload.php`:\n\n```php\n\u003c?php\nrequire_once('/path/to/RedditClient/vendor/autoload.php');\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```php\n\u003c?php\nrequire_once(__DIR__ . '/vendor/autoload.php');\n\n\n\n// Configure OAuth2 access token for authorization: oauth2\n$config = Sigwin\\RedditClient\\Configuration::getDefaultConfiguration()-\u003esetAccessToken('YOUR_ACCESS_TOKEN');\n\n\n$apiInstance = new Sigwin\\RedditClient\\Api\\ThingApi(\n    // If you want use custom http client, pass your client which implements `GuzzleHttp\\ClientInterface`.\n    // This is optional, `GuzzleHttp\\Client` will be used as default.\n    new GuzzleHttp\\Client(),\n    $config\n);\n$id = t3_11e9mr5; // string\n$sr_name = pics; // string\n\ntry {\n    $result = $apiInstance-\u003egetInfo($id, $sr_name);\n    print_r($result);\n} catch (Exception $e) {\n    echo 'Exception when calling ThingApi-\u003egetInfo: ', $e-\u003egetMessage(), PHP_EOL;\n}\n\n```\n\n## API Endpoints\n\nAll URIs are relative to *https://oauth.reddit.com*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*ThingApi* | [**getInfo**](docs/Api/ThingApi.md#getinfo) | **GET** /api/info | Get thing info\n*UserApi* | [**getAbout**](docs/Api/UserApi.md#getabout) | **GET** /user/{username}/about | Returns the identity of a user.\n*UserApi* | [**getSaved**](docs/Api/UserApi.md#getsaved) | **GET** /user/{username}/saved | Get user saved things\n*UserApi* | [**me**](docs/Api/UserApi.md#me) | **GET** /api/me | Returns the identity of the current user.\n\n## Models\n\n- [Listing](docs/Model/Listing.md)\n- [ListingEnvelope](docs/Model/ListingEnvelope.md)\n- [Thing](docs/Model/Thing.md)\n- [ThingData](docs/Model/ThingData.md)\n- [User](docs/Model/User.md)\n- [UserData](docs/Model/UserData.md)\n\n## Authorization\n\nAuthentication schemes defined for the API:\n### oauth2\n\n- **Type**: `OAuth`\n- **Flow**: `accessCode`\n- **Authorization URL**: `/authorize`\n- **Scopes**: N/A\n\n## Tests\n\nTo run the tests, use:\n\n```bash\ncomposer install\nvendor/bin/phpunit\n```\n\n## Author\n\napi@reddit.com\n\n## About this package\n\nThis PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:\n\n- API version: `1.2.0`\n    - Generator version: `7.13.0-SNAPSHOT`\n- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigwinhq%2Freddit-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsigwinhq%2Freddit-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigwinhq%2Freddit-client/lists"}