operationId._2Fuser_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /user"
* example usage:
swgg.apiDict["operationId._2Fuser_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.hagar-preview+json"
]
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_20PATCH.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "PATCH /user"
* example usage:
swgg.apiDict["operationId._2Fuser_20PATCH"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.hagar-preview+json"
],
"body": {
"bio": "There once...",
"blog": "https://github.com/blog",
"company": "GitHub",
"email": "octocat@github.com",
"hireable": true,
"location": "San Francisco",
"name": "monalisa octocat"
}
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Fblocks_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /user/blocks"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fblocks_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.giant-sentry-fist-preview+json"
]
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Fblocks_2F_7Busername_7D_20DELETE.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "DELETE /user/blocks/{}"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fblocks_2F_7Busername_7D_20DELETE"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.giant-sentry-fist-preview+json"
],
"username": "username"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Fblocks_2F_7Busername_7D_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /user/blocks/{}"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fblocks_2F_7Busername_7D_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.giant-sentry-fist-preview+json"
],
"username": "username"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Fblocks_2F_7Busername_7D_20PUT.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "PUT /user/blocks/{}"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fblocks_2F_7Busername_7D_20PUT"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.giant-sentry-fist-preview+json"
],
"username": "username"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Femail_2Fvisibility_20PATCH.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "PATCH /user/email/visibility"
* example usage:
swgg.apiDict["operationId._2Fuser_2Femail_2Fvisibility_20PATCH"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
],
"body": {
"email": "octocat@github.com",
"visibility": "public"
}
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Femails_20DELETE.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "DELETE /user/emails"
* example usage:
swgg.apiDict["operationId._2Fuser_2Femails_20DELETE"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
]
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Femails_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /user/emails"
* example usage:
swgg.apiDict["operationId._2Fuser_2Femails_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
]
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Femails_20POST.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "POST /user/emails"
* example usage:
swgg.apiDict["operationId._2Fuser_2Femails_20POST"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
]
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Ffollowing_2F_7Busername_7D_20DELETE.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "DELETE /user/following/{}"
* example usage:
swgg.apiDict["operationId._2Fuser_2Ffollowing_2F_7Busername_7D_20DELETE"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
],
"username": "username"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Ffollowing_2F_7Busername_7D_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /user/following/{}"
* example usage:
swgg.apiDict["operationId._2Fuser_2Ffollowing_2F_7Busername_7D_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
],
"username": "username"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Ffollowing_2F_7Busername_7D_20PUT.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "PUT /user/following/{}"
* example usage:
swgg.apiDict["operationId._2Fuser_2Ffollowing_2F_7Busername_7D_20PUT"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
],
"username": "username"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Fgpg_keys_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /user/gpg_keys"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fgpg_keys_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
]
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Fgpg_keys_20POST.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "POST /user/gpg_keys"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fgpg_keys_20POST"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
],
"body": {
"armored_public_key": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----"
}
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Fgpg_keys_2F_7Bid_7D_20DELETE.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "DELETE /user/gpg_keys/{}"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fgpg_keys_2F_7Bid_7D_20DELETE"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+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._2Fuser_2Fgpg_keys_2F_7Bid_7D_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /user/gpg_keys/{}"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fgpg_keys_2F_7Bid_7D_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+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._2Fuser_2Fkeys_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /user/keys"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fkeys_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
]
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Fkeys_20POST.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "POST /user/keys"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fkeys_20POST"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
],
"body": {
"key": "ssh-rsa AAA...",
"title": "octocat@octomac"
}
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a
operationId._2Fuser_2Fkeys_2F_7Bid_7D_20DELETE.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "DELETE /user/keys/{}"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fkeys_2F_7Bid_7D_20DELETE"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+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._2Fuser_2Fkeys_2F_7Bid_7D_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /user/keys/{}"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fkeys_2F_7Bid_7D_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+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._2Fuser_2Fpublic_emails_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /user/public_emails"
* example usage:
swgg.apiDict["operationId._2Fuser_2Fpublic_emails_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
]
}, 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_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /users"
* example usage:
swgg.apiDict["operationId._2Fusers_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.hagar-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_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /users/{}"
* example usage:
swgg.apiDict["operationId._2Fusers_2F_7Busername_7D_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.hagar-preview+json"
],
"username": "username"
}, 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_2Ffollowers_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /users/{}/followers"
* example usage:
swgg.apiDict["operationId._2Fusers_2F_7Busername_7D_2Ffollowers_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
],
"username": "username"
}, 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_2Ffollowing_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /users/{}/following"
* example usage:
swgg.apiDict["operationId._2Fusers_2F_7Busername_7D_2Ffollowing_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
],
"username": "username"
}, 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_2Ffollowing_2F_7Btarget_user_7D_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /users/{}/following/{}"
* example usage:
swgg.apiDict["operationId._2Fusers_2F_7Busername_7D_2Ffollowing_2F_7Btarget_user_7D_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
],
"username": "username",
"target_user": "target_user"
}, 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_2Fgpg_keys_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /users/{}/gpg_keys"
* example usage:
swgg.apiDict["operationId._2Fusers_2F_7Busername_7D_2Fgpg_keys_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
],
"username": "username"
}, 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_2Fhovercard_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /users/{}/hovercard"
* example usage:
swgg.apiDict["operationId._2Fusers_2F_7Busername_7D_2Fhovercard_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.hagar-preview+json"
],
"username": "username",
"subject_type": "abcd1234",
"subject_id": "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_2Fkeys_20GET.ajax = function (swaggerJson, onError) {
/*
* this function will run the api-call "GET /users/{}/keys"
* example usage:
swgg.apiDict["operationId._2Fusers_2F_7Busername_7D_2Fkeys_20GET"].ajax({
"access_token": "xxxxxxxx",
"user-agent": "Awesome-Octocat-App",
"accept": [
"application/vnd.github.v3+json"
],
"username": "username"
}, function (error, data) {
if (error) {
console.error(error);
return;
}
console.log(data.responseJson || data.responseText);
});
*/
return local.apiAjax(self, swaggerJson, onError);
}
n/a