- Getting Started
- Obtaining OAuth Tokens For Patrons
- Patreon Integration Examples
- Method Documentation
- Library Architecture
Access using the me()
method on Patreon
, e.g: $patreon->me()->get()
get()
Returns aUser
. Depending on context, this will either be a Campaign Creator (when accessed using aCreators Access Token
) or a User who could be a Patron of the OAuth Client Creator's Campaign.
Access using the campaigns()
method on Patreon
, e.g:
$patreon->campaigns()->getMyCampaign()
getMyCampaign()
Returns theCampaign
belonging to the Creator Access Token owner.getMyCampaignWithPledges()
Returns theCampaign
belonging to the Creator Access Token owner with thePledges
property populated with all of the Campaign's Pledges.getCampaign(int $id)
Returns aCampaign
by ID.getCampaignWithPledges(int $id)
Returns aCampaign
by ID with thePledges
property populated with all of the Campaign's Pledges.
Access using the pledges()
method on Patreon
, e.g: $patreon->pledges()->getCampaignPledges($int $id)
getCampaignPledges($int id)
Returns aCollection
ofPledges
.getPageOfCampaignPledges($campaign, $count, $sort, $cursor)
Returns aCollection
ofPledges
for the requested page.
Access using the webhook()
method on Patreon
, e.g:
$patreon->webhook()->accept(...)
accept($body, $secret, $signature)
Verifies the request signature against the body and returns aCollection
ofPledges
, or throws a SignatureVerificationFailed Exception.
- 7 Properties — see Entities\Address
- 27 Properties — see Entities\Campaign
- 1 Relation —
creator
- 3 Collections —
goals
,pledges
andrewards
- 2 helpers —
getAvailableRewards()
,getPledgeUrl()
- 8 Properties — see Entities\Card
- 6 Properties — see Entities\Goal
- 2 Helpers —
hasBeenCompleted()
andisCompleted()
- 9 Properties — see Entities\Pledge
- 5 Relations —
address
,card
,creator
,patron
,reward
- 4 Helpers —
isActive()
,isPaymentDeclined()
,hasMadeAPayment()
,hasReward()
getTotalSpent()
- 17 Properties — see Entities\Reward
- 1 Relation —
campaign
- 3 Helpers —
isAvailableToChoose()
,hasRemainingLimit()
,isSystemReward()
getPledgeUrl()
,getPrice()
- 23 Properties — see Entities\User
- 1 Relation —
campaign
- 1 Collection —
pledges
- 2 Helpers —
hasActivePledge()
,isCreator()
,hasInactivePledge()
,getPledge()