{"id":15479324,"url":"https://github.com/niuhuan/patreon-rs","last_synced_at":"2025-08-11T21:44:41.364Z","repository":{"id":150671332,"uuid":"623432797","full_name":"niuhuan/patreon-rs","owner":"niuhuan","description":"Patreon client crate for rust","archived":false,"fork":false,"pushed_at":"2024-12-18T14:31:46.000Z","size":27,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-30T03:08:22.350Z","etag":null,"topics":["oauth","patreon","patreon-api","patreon-client","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/niuhuan.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":"2023-04-04T11:10:26.000Z","updated_at":"2024-12-27T19:07:55.000Z","dependencies_parsed_at":"2023-04-11T11:18:50.261Z","dependency_job_id":null,"html_url":"https://github.com/niuhuan/patreon-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/niuhuan/patreon-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niuhuan%2Fpatreon-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niuhuan%2Fpatreon-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niuhuan%2Fpatreon-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niuhuan%2Fpatreon-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niuhuan","download_url":"https://codeload.github.com/niuhuan/patreon-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niuhuan%2Fpatreon-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267864959,"owners_count":24157218,"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-30T02:00:09.044Z","response_time":70,"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":["oauth","patreon","patreon-api","patreon-client","rust"],"created_at":"2024-10-02T04:20:49.830Z","updated_at":"2025-08-11T21:44:41.317Z","avatar_url":"https://github.com/niuhuan.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"PATREON\n=======\n\nA patreon client crate for rust.\n\n```rust\nasync fn example() {\n    // OAuth client\n    let client = PatreonOAuth {\n        client_id: env!(\"CLIENT_ID\").to_string(),\n        client_secret: env!(\"CLIENT_SECRET\").to_string(),\n        redirect_uri: env!(\"REDIRECT_URI\").to_string(),\n        ..Default::default()\n    };\n    // authorization by url\n    println!(\"{}\", oauth.get_authorization_url());\n    oauth.get_tokens(\"\");\n\n    // Api Clinet\n    let api = PatreonApi {\n        access_token: env!(\"ACCESS_TOKEN\").to_string(),\n        ..Default::default()\n    };\n    println!(\"{:?}\", api.ident().await);\n  \n    // webhook\n    let webhook = Webhook {\n        webhook_secret,\n    };\n    webhook.check_signature(...);\n    webhook.parse_event(...);\n}\n```\n\n## Features\n\n- [x] OAuth\n  - [x] Get authorization url\n  - [x] Get tokens from code\n  - [x] Refresh tokens\n- [x] Api\n  - [x] Current user \n  - [x] Identity\n  - [x] Identity include Memberships\n  - [x] Identity include Campaign\n- [x] Webhook\n  - [x] Check check_signature\n  - [x] Parse","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniuhuan%2Fpatreon-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniuhuan%2Fpatreon-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniuhuan%2Fpatreon-rs/lists"}