operationId._2Fgists_20POST.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "POST /gists"
* example usage:
swgg.apiDict["operationId._2Fgists_20POST"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"body": {
"description": "the description for this gist",
"files": {
"file1.txt": {
"content": "String file contents"
}
},
"public": false
}
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bgist_id_7D_2Fcomments_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /gists/{}/comments"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bgist_id_7D_2Fcomments_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3.raw+json"
],
"gist_id": "gist_id"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bgist_id_7D_2Fcomments_20POST.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "POST /gists/{}/comments"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bgist_id_7D_2Fcomments_20POST"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3.raw+json"
],
"gist_id": "gist_id",
"body": {
"body": "Just commenting for the sake of commenting"
}
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bgist_id_7D_2Fcomments_2F_7Bid_7D_20DELETE.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "DELETE /gists/{}/comments/{}"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bgist_id_7D_2Fcomments_2F_7Bid_7D_20DELETE"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3.raw+json"
],
"gist_id": "gist_id",
"id": "id"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bgist_id_7D_2Fcomments_2F_7Bid_7D_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /gists/{}/comments/{}"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bgist_id_7D_2Fcomments_2F_7Bid_7D_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3.raw+json"
],
"gist_id": "gist_id",
"id": "id"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bgist_id_7D_2Fcomments_2F_7Bid_7D_20PATCH.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "PATCH /gists/{}/comments/{}"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bgist_id_7D_2Fcomments_2F_7Bid_7D_20PATCH"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3.raw+json"
],
"gist_id": "gist_id",
"id": "id",
"body": {
"body": "Just commenting for the sake of commenting"
}
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bid_7D_20DELETE.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "DELETE /gists/{}"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bid_7D_20DELETE"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"id": "id"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bid_7D_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /gists/{}"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bid_7D_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"id": "id"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bid_7D_20PATCH.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "PATCH /gists/{}"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bid_7D_20PATCH"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"id": "id",
"body": {
"content": "abcd1234",
"description": "the description for this gist",
"filename": "abcd1234",
"files": {
"delete_this_file.txt": "abcd1234",
"file1.txt": {
"content": "updated file contents"
},
"new_file.txt": {
"content": "a new file"
},
"old_name.txt": {
"content": "modified contents",
"filename": "new_name.txt"
}
}
}
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bid_7D_2F_7Bsha_7D_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /gists/{}/{}"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bid_7D_2F_7Bsha_7D_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"id": "id",
"sha": "sha"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bid_7D_2Fcommits_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /gists/{}/commits"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bid_7D_2Fcommits_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"id": "id"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bid_7D_2Fforks_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /gists/{}/forks"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bid_7D_2Fforks_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"id": "id"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bid_7D_2Fforks_20POST.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "POST /gists/{}/forks"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bid_7D_2Fforks_20POST"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"id": "id"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bid_7D_2Fstar_20DELETE.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "DELETE /gists/{}/star"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bid_7D_2Fstar_20DELETE"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"id": "id"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bid_7D_2Fstar_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /gists/{}/star"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bid_7D_2Fstar_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"id": "id"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2F_7Bid_7D_2Fstar_20PUT.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "PUT /gists/{}/star"
* example usage:
swgg.apiDict["operationId._2Fgists_2F_7Bid_7D_2Fstar_20PUT"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"id": "id"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2Fpublic_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /gists/public"
* example usage:
swgg.apiDict["operationId._2Fgists_2Fpublic_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"since": "abcd1234"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fgists_2Fstarred_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /gists/starred"
* example usage:
swgg.apiDict["operationId._2Fgists_2Fstarred_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"since": "abcd1234"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fusers_2F_7Busername_7D_2Fgists_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /users/{}/gists"
* example usage:
swgg.apiDict["operationId._2Fusers_2F_7Busername_7D_2Fgists_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.jean-grey-preview+json"
],
"username": "username",
"since": "abcd1234"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a