auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
const utf8 = require('utf8');
this.etf8string = utf8.encode("this is a sample text");
The new blob's content. Supports blobs up to 100 megabytes in size.
Name of repository owner.
Name of repository.
async
(params, auths) => {
}
//See the API docs: https://developer.github.com/v3/git/blobs/#create-a-blob
const data = {
content: params.content,
encoding: params.encoding
}
const config = {
method: "post",
url: `https://api.github.com/repos/${params.owner}/${params.repo}/git/blobs`,
headers: {
Authorization: `Bearer ${auths.github.oauth_access_token}`,
},
data,
}
return await require("@pipedreamhq/platform").axios(this, config)