Skip to content

Instantly share code, notes, and snippets.

@samsieber
Created February 4, 2019 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsieber/d802a10b4fb8b15513550b6e9c94702b to your computer and use it in GitHub Desktop.
Save samsieber/d802a10b4fb8b15513550b6e9c94702b to your computer and use it in GitHub Desktop.
Built with darling
#[derive(Debug, JsonEndpoint)]
#[jupiter(
url = "https://sheets.googleapis.com/v4/spreadsheets/{spreadsheet_id}/values/{range}:append",
method = "POST",
ty = "self::append::AppendValuesResponse"
)]
pub struct AppendToRangeEndpoint {
spreadsheet_id: String,
range: String,
#[jupiter(role("Body"))]
body: ValueRange,
#[jupiter(role("Query"))]
query: self::append::AppendOptions,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment