rdx/patreon-user-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rdx/patreon-user-api

Composer 安装命令:

composer require rdx/patreon-user-api

包简介

Fake API client for Patreon user data

README 文档

README

Fake API client for Patreon user data.

Since Patreon doesn't have a real API, and you definitely have 2fa enabled, you can't log in with this package, so you need to log in with a real browser, copy 1 cookie value, and use that for auth:

$client = new Client(new AuthSession("Cookie 'session_id'"));

And then you do a 'login' (but not really) and session check:

$loggedIn = $client->logIn(); // bool

Or you can make your own real login implementation. See interface Auth and class AuthSession.

And then you can fetch your user data:

$client->getPledges(); // Pledge[]

$client->getFollows(); // Follow[]

$client->getBills(year: 2020); // Bill[]
print_r($client->billableYears); // int[]

All of those will contain Creator objects, with id and campaignId, and you need those to:

$follow = $client->follow($creator); // Follow

$client->unfollow($follow); // void

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固