{ "opencollection": "1.0.0", "info": { "name": "Google Books About Drafts API", "version": "1.0.0" }, "items": [ { "info": { "name": "Drafts", "type": "folder" }, "items": [ { "info": { "name": "Google Send Drafts", "type": "http" }, "http": { "method": "POST", "url": "https://www.googleapis.com/books/v1/gmail/v1/users/:userId/drafts/send", "headers": [ { "name": "Content-Type", "value": "application/json" }, { "name": "Accept", "value": "application/json" } ], "params": [ { "name": "userId", "value": "{{userID}}", "type": "path", "description": "(Required) " } ], "body": { "type": "json", "data": "{}" } }, "docs": "Sends the specified, existing draft to the recipients in the `To`, `Cc`, and `Bcc` headers." }, { "info": { "name": "Google Get Drafts", "type": "http" }, "http": { "method": "GET", "url": "https://www.googleapis.com/books/v1/gmail/v1/users/:userId/drafts/:id", "headers": [ { "name": "Accept", "value": "application/json" } ], "params": [ { "name": "userId", "value": "{{userId}}", "type": "path", "description": "(Required) " }, { "name": "id", "value": "", "type": "path", "description": "(Required) " } ] }, "docs": "Gets the specified draft." }, { "info": { "name": "Google Update Drafts", "type": "http" }, "http": { "method": "PUT", "url": "https://www.googleapis.com/books/v1/gmail/v1/users/:userId/drafts/:id", "headers": [ { "name": "Content-Type", "value": "application/json" }, { "name": "Accept", "value": "application/json" } ], "params": [ { "name": "userId", "value": "incididunt labore i", "type": "path", "description": "(Required) " }, { "name": "id", "value": "incididunt labore i", "type": "path", "description": "(Required) " } ], "body": { "type": "json", "data": "{}" } }, "docs": "Replaces a draft's content." }, { "info": { "name": "Google Delete Drafts", "type": "http" }, "http": { "method": "DELETE", "url": "https://www.googleapis.com/books/v1/gmail/v1/users/:userId/drafts/:id", "params": [ { "name": "userId", "value": "incididunt labore i", "type": "path", "description": "(Required) " }, { "name": "id", "value": "incididunt labore i", "type": "path", "description": "(Required) " } ] }, "docs": "Immediately and permanently deletes the specified draft. Does not simply trash it." }, { "info": { "name": "Google List Drafts", "type": "http" }, "http": { "method": "GET", "url": "https://www.googleapis.com/books/v1/gmail/v1/users/:userId/drafts", "headers": [ { "name": "Accept", "value": "application/json" } ], "params": [ { "name": "userId", "value": "{{userID}}", "type": "path", "description": "(Required) " } ] }, "docs": "Lists the drafts in the user's mailbox." }, { "info": { "name": "Google Create Drafts", "type": "http" }, "http": { "method": "POST", "url": "https://www.googleapis.com/books/v1/gmail/v1/users/:userId/drafts", "headers": [ { "name": "Content-Type", "value": "application/json" }, { "name": "Accept", "value": "application/json" } ], "params": [ { "name": "userId", "value": "incididunt labore i", "type": "path", "description": "(Required) " } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new draft with the `DRAFT` label." } ] } ], "bundled": true }