patreon: show all patrons
Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
parent
dfe84da074
commit
7bdd2936c2
File diff suppressed because it is too large
Load Diff
|
@ -16,6 +16,6 @@ tracing = "0.1"
|
|||
tracing-futures = "0.2"
|
||||
|
||||
[dev-dependencies]
|
||||
tokio = { version = "1", features = ["macros"] }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
envy = "0.4"
|
||||
pretty_env_logger = "0"
|
|
@ -13,5 +13,8 @@ async fn main() -> Result<()> {
|
|||
|
||||
let pledges = cli.pledges(id).await?;
|
||||
println!("{:#?}", pledges);
|
||||
|
||||
println!("{} patrons", pledges.len());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -143,7 +143,7 @@ impl Client {
|
|||
"{}/oauth2/api/campaigns/{}/pledges",
|
||||
self.base_url, camp_id
|
||||
))
|
||||
.query(&[("include", "patron.null")])
|
||||
.query(&[("include", "patron.null"), ("page[count]", "100")])
|
||||
.header(
|
||||
"Authorization",
|
||||
format!("Bearer {}", self.creds.access_token),
|
||||
|
|
Loading…
Reference in New Issue