The filenames and content of each file in the gist. The keys in the files object represent the filename and have the type string.
async
(params, auths) => {
}
//See the API docs here: https://developer.github.com/v3/gists/#create-a-gist
const data = {
description: params.description,
files: JSON.parse(params.files),
public: params.public || false,
}
const config = {
method: "post",
url: `https://api.github.com/gists`,
headers: {
Authorization: `Bearer ${auths.github.oauth_access_token}`,
},
data,
}
return await require("@pipedreamhq/platform").axios(this, config)