Comparing version 0.1.12 to 0.1.13
@@ -26,6 +26,6 @@ /** | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
@@ -49,3 +49,3 @@ * - per_page (Number): Optional. A custom page size up to 100. Default is 30. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -59,3 +59,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -70,6 +70,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -92,3 +92,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -102,3 +102,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -113,6 +113,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - scopes (Array): Optional. Optional array - A list of scopes that this authorization is in. | ||
@@ -137,3 +137,3 @@ * - note (String): Optional. Optional string - A note to remind you what the OAuth token is for. | ||
} | ||
if (!ret) | ||
@@ -147,3 +147,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -158,6 +158,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -185,3 +185,3 @@ * - scopes (Array): Optional. Optional array - A list of scopes that this authorization is in. | ||
} | ||
if (!ret) | ||
@@ -195,3 +195,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -206,6 +206,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -228,3 +228,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -238,3 +238,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -241,0 +241,0 @@ callback(null, ret); |
@@ -26,6 +26,6 @@ /** | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
@@ -49,3 +49,3 @@ * - per_page (Number): Optional. A custom page size up to 100. Default is 30. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -59,3 +59,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -70,6 +70,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -95,3 +95,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -105,3 +105,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -116,6 +116,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -141,3 +141,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -151,3 +151,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -162,6 +162,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -187,3 +187,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -197,3 +197,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -208,6 +208,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - org (String): Required. | ||
@@ -232,3 +232,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -242,3 +242,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -253,6 +253,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -277,3 +277,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -287,3 +287,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -298,6 +298,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -322,3 +322,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -332,3 +332,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -343,6 +343,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -367,3 +367,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -377,3 +377,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -388,6 +388,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -412,3 +412,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -422,3 +422,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -433,6 +433,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -458,3 +458,3 @@ * - org (String): Required. | ||
} | ||
if (!ret) | ||
@@ -468,3 +468,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -471,0 +471,0 @@ callback(null, ret); |
@@ -26,6 +26,6 @@ /** | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
@@ -50,3 +50,3 @@ * - per_page (Number): Optional. A custom page size up to 100. Default is 30. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -60,3 +60,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -71,6 +71,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -96,3 +96,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -106,3 +106,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -117,6 +117,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - description (String): Optional. | ||
@@ -141,3 +141,3 @@ * - public (Boolean): Required. | ||
} | ||
if (!ret) | ||
@@ -151,3 +151,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -162,6 +162,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -186,3 +186,3 @@ * - description (String): Optional. | ||
} | ||
if (!ret) | ||
@@ -196,3 +196,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -207,6 +207,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - since (Date): Optional. Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ | ||
@@ -229,3 +229,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -239,3 +239,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -250,6 +250,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - since (Date): Optional. Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ | ||
@@ -272,3 +272,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -282,3 +282,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -293,6 +293,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -315,3 +315,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -325,3 +325,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -336,6 +336,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -358,3 +358,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -368,3 +368,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -379,6 +379,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -401,3 +401,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -411,3 +411,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -422,6 +422,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -444,3 +444,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -454,3 +454,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -465,6 +465,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -487,3 +487,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -497,3 +497,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -508,6 +508,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -530,3 +530,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -540,3 +540,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -543,0 +543,0 @@ callback(null, ret); |
@@ -26,6 +26,6 @@ /** | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -52,3 +52,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -62,3 +62,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -73,6 +73,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -98,3 +98,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -108,3 +108,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -119,6 +119,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -143,3 +143,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -153,3 +153,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -164,6 +164,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -192,3 +192,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -202,3 +202,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -213,6 +213,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -237,3 +237,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -247,3 +247,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -258,6 +258,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -283,3 +283,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -293,3 +293,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -304,6 +304,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -329,3 +329,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -339,3 +339,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -350,6 +350,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -376,3 +376,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -386,3 +386,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -397,6 +397,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -421,3 +421,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -431,3 +431,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -442,6 +442,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -466,3 +466,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -476,3 +476,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -487,6 +487,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -515,3 +515,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -525,3 +525,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -536,6 +536,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -561,3 +561,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -571,3 +571,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -582,6 +582,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -607,3 +607,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -617,3 +617,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -620,0 +620,0 @@ callback(null, ret); |
@@ -26,6 +26,6 @@ /** | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - filter (String): Optional. Validation rule: ` ^(all|assigned|created|mentioned|subscribed)$ `. | ||
@@ -55,3 +55,3 @@ * - state (String): Optional. Validation rule: ` ^(open|closed)$ `. | ||
} | ||
if (!ret) | ||
@@ -65,3 +65,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -76,6 +76,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -109,3 +109,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -119,3 +119,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -130,6 +130,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -154,3 +154,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -164,3 +164,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -175,6 +175,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -203,3 +203,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -213,3 +213,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -224,6 +224,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -254,3 +254,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -264,3 +264,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -275,6 +275,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -303,3 +303,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -313,3 +313,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -324,6 +324,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -350,3 +350,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -360,3 +360,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -371,6 +371,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -395,3 +395,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -405,3 +405,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -416,6 +416,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -441,3 +441,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -451,3 +451,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -462,6 +462,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -487,3 +487,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -497,3 +497,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -508,6 +508,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -532,3 +532,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -542,3 +542,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -553,6 +553,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -579,3 +579,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -589,3 +589,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -600,6 +600,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -625,3 +625,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -635,3 +635,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -646,6 +646,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -670,3 +670,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -680,3 +680,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -691,6 +691,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -714,3 +714,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -724,3 +724,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -735,6 +735,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -759,3 +759,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -769,3 +769,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -780,6 +780,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -805,3 +805,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -815,3 +815,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -826,6 +826,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -851,3 +851,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -861,3 +861,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -872,6 +872,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -896,3 +896,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -906,3 +906,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -917,6 +917,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -944,3 +944,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -954,3 +954,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -965,6 +965,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -989,3 +989,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -999,3 +999,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -1010,6 +1010,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -1037,3 +1037,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -1047,3 +1047,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -1058,6 +1058,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -1086,3 +1086,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -1096,3 +1096,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -1107,6 +1107,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -1131,3 +1131,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -1141,3 +1141,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -1144,0 +1144,0 @@ callback(null, ret); |
@@ -26,6 +26,6 @@ /** | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - text (String): Required. The Markdown text to render | ||
@@ -50,3 +50,3 @@ * - mode (String): Optional. The rendering mode, `markdown` to render a document as plain Markdown, just like README files are rendered. `gfm` to render a document as user-content, e.g. like user comments or issues are rendered. In GFM mode, hard line breaks are always taken into account, and issue and user mentions are linked accordingly. Validation rule: ` ^(markdown|gfm)$ `. | ||
} | ||
if (!ret) | ||
@@ -60,3 +60,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -63,0 +63,0 @@ callback(null, ret); |
@@ -26,6 +26,6 @@ /** | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -50,3 +50,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -60,3 +60,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -71,6 +71,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - org (String): Required. | ||
@@ -95,3 +95,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -105,3 +105,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -116,6 +116,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - org (String): Required. | ||
@@ -143,3 +143,3 @@ * - billing_email (String): Optional. Optional string - Billing email address. This address is not publicized. | ||
} | ||
if (!ret) | ||
@@ -153,3 +153,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -164,6 +164,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - org (String): Required. | ||
@@ -188,3 +188,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -198,3 +198,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -209,6 +209,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - org (String): Required. | ||
@@ -232,3 +232,3 @@ * - user (String): Required. | ||
} | ||
if (!ret) | ||
@@ -242,3 +242,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -253,6 +253,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - org (String): Required. | ||
@@ -276,3 +276,3 @@ * - user (String): Required. | ||
} | ||
if (!ret) | ||
@@ -286,3 +286,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -297,6 +297,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - org (String): Required. | ||
@@ -319,3 +319,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -329,3 +329,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -340,6 +340,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - org (String): Required. | ||
@@ -363,3 +363,3 @@ * - user (String): Required. | ||
} | ||
if (!ret) | ||
@@ -373,3 +373,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -384,6 +384,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - org (String): Required. | ||
@@ -407,3 +407,3 @@ * - user (String): Required. | ||
} | ||
if (!ret) | ||
@@ -417,3 +417,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -428,6 +428,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - org (String): Required. | ||
@@ -451,3 +451,3 @@ * - user (String): Required. | ||
} | ||
if (!ret) | ||
@@ -461,3 +461,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -472,6 +472,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - org (String): Required. | ||
@@ -494,3 +494,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -504,3 +504,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -515,6 +515,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -537,3 +537,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -547,3 +547,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -558,6 +558,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - org (String): Required. | ||
@@ -583,3 +583,3 @@ * - name (String): Required. | ||
} | ||
if (!ret) | ||
@@ -593,3 +593,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -604,6 +604,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -628,3 +628,3 @@ * - name (String): Required. | ||
} | ||
if (!ret) | ||
@@ -638,3 +638,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -649,6 +649,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -671,3 +671,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -681,3 +681,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -692,6 +692,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -716,3 +716,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -726,3 +726,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -737,6 +737,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -760,3 +760,3 @@ * - user (String): Required. | ||
} | ||
if (!ret) | ||
@@ -770,3 +770,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -781,6 +781,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -804,3 +804,3 @@ * - user (String): Required. | ||
} | ||
if (!ret) | ||
@@ -814,3 +814,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -825,6 +825,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -848,3 +848,3 @@ * - user (String): Required. | ||
} | ||
if (!ret) | ||
@@ -858,3 +858,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -869,6 +869,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -893,3 +893,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -903,3 +903,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -914,6 +914,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -938,3 +938,3 @@ * - user (String): Required. | ||
} | ||
if (!ret) | ||
@@ -948,3 +948,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -959,6 +959,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -983,3 +983,3 @@ * - user (String): Required. | ||
} | ||
if (!ret) | ||
@@ -993,3 +993,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -1004,6 +1004,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -1028,3 +1028,3 @@ * - user (String): Required. | ||
} | ||
if (!ret) | ||
@@ -1038,3 +1038,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -1041,0 +1041,0 @@ callback(null, ret); |
@@ -26,6 +26,6 @@ /** | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -52,3 +52,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -62,3 +62,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -73,6 +73,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -97,3 +97,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -107,3 +107,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -118,6 +118,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -145,3 +145,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -155,3 +155,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -166,6 +166,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -192,3 +192,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -202,3 +202,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -213,6 +213,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -240,3 +240,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -250,3 +250,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -261,6 +261,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -287,3 +287,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -297,3 +297,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -308,6 +308,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -334,3 +334,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -344,3 +344,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -355,6 +355,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -381,3 +381,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -391,3 +391,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -402,6 +402,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -427,3 +427,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -437,3 +437,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -448,6 +448,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -474,3 +474,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -484,3 +484,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -495,6 +495,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -519,3 +519,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -529,3 +529,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -540,6 +540,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -568,3 +568,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -578,3 +578,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -589,6 +589,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -615,3 +615,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -625,3 +625,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -636,6 +636,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -661,3 +661,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -671,3 +671,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -682,6 +682,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -706,3 +706,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -716,3 +716,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -719,0 +719,0 @@ callback(null, ret); |
@@ -528,2 +528,63 @@ /* | ||
it("should successfully execute PUT /repos/:user/:repo/contents/:path (createFile)", function(next) { | ||
client.repos.createFile( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
path: "String", | ||
message: "String", | ||
content: "String", | ||
branch: "String", | ||
author: "Json", | ||
committer: "Json" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute PUT /repos/:user/:repo/contents/:path (updateFile)", function(next) { | ||
client.repos.updateFile( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
path: "String", | ||
message: "String", | ||
content: "String", | ||
sha: "String", | ||
branch: "String", | ||
author: "Json", | ||
committer: "Json" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute DELETE /repos/:user/:repo/contents/:path (deleteFile)", function(next) { | ||
client.repos.deleteFile( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
path: "String", | ||
message: "String", | ||
sha: "String", | ||
branch: "String", | ||
author: "Json", | ||
committer: "Json" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute GET /repos/:user/:repo/:archive_format/:ref (getArchiveLink)", function(next) { | ||
@@ -530,0 +591,0 @@ client.repos.getArchiveLink( |
@@ -26,6 +26,6 @@ /** | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -51,3 +51,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -61,3 +61,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -72,6 +72,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - keyword (String): Required. Search term | ||
@@ -96,3 +96,3 @@ * - language (String): Optional. Filter results by language, see https://github.com/languages | ||
} | ||
if (!ret) | ||
@@ -106,3 +106,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -117,6 +117,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - keyword (String): Required. Keyword search parameters | ||
@@ -140,3 +140,3 @@ * - start_page (Number): Optional. Page number to fetch Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -150,3 +150,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -161,6 +161,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - email (String): Required. Email address | ||
@@ -183,3 +183,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -193,3 +193,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -196,0 +196,0 @@ callback(null, ret); |
@@ -26,6 +26,6 @@ /** | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -50,3 +50,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -60,3 +60,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -71,6 +71,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -98,3 +98,3 @@ * - repo (String): Required. | ||
} | ||
if (!ret) | ||
@@ -108,3 +108,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -111,0 +111,0 @@ callback(null, ret); |
@@ -26,6 +26,6 @@ /** | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -48,3 +48,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -58,3 +58,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -69,6 +69,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* No other params, simply pass an empty Object literal `{}` | ||
@@ -91,3 +91,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -101,3 +101,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -112,6 +112,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - name (String): Optional. | ||
@@ -140,3 +140,3 @@ * - email (String): Optional. | ||
} | ||
if (!ret) | ||
@@ -150,3 +150,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -161,6 +161,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
@@ -184,3 +184,3 @@ * - per_page (Number): Optional. A custom page size up to 100. Default is 30. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -194,3 +194,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -205,6 +205,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
@@ -228,3 +228,3 @@ * - per_page (Number): Optional. A custom page size up to 100. Default is 30. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -238,3 +238,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -249,6 +249,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* No other params, simply pass an empty Object literal `{}` | ||
@@ -271,3 +271,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -281,3 +281,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -292,6 +292,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* No other params, simply pass an empty Object literal `{}` | ||
@@ -314,3 +314,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -324,3 +324,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -335,6 +335,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -359,3 +359,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -369,3 +369,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -380,6 +380,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -404,3 +404,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -414,3 +414,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -425,6 +425,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
@@ -448,3 +448,3 @@ * - per_page (Number): Optional. A custom page size up to 100. Default is 30. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -458,3 +458,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -469,6 +469,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -493,3 +493,3 @@ * - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -503,3 +503,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -514,6 +514,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -536,3 +536,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -546,3 +546,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -557,6 +557,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
@@ -579,3 +579,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -589,3 +589,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -600,6 +600,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
@@ -623,3 +623,3 @@ * - per_page (Number): Optional. A custom page size up to 100. Default is 30. Validation rule: ` ^[0-9]+$ `. | ||
} | ||
if (!ret) | ||
@@ -633,3 +633,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -641,9 +641,51 @@ callback(null, ret); | ||
/** section: github | ||
* user#getKeysFromUser(msg, callback) -> null | ||
* - msg (Object): Object that contains the parameters and their values to be sent to the server. | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - user (String): Required. | ||
* - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `. | ||
* - per_page (Number): Optional. A custom page size up to 100. Default is 30. Validation rule: ` ^[0-9]+$ `. | ||
**/ | ||
this.getKeysFromUser = function(msg, block, callback) { | ||
var self = this; | ||
this.client.httpSend(msg, block, function(err, res) { | ||
if (err) | ||
return self.sendError(err, null, msg, callback); | ||
var ret; | ||
try { | ||
ret = res.data && JSON.parse(res.data); | ||
} | ||
catch (ex) { | ||
if (callback) | ||
callback(new error.InternalServerError(ex.message), res); | ||
return; | ||
} | ||
if (!ret) | ||
ret = {}; | ||
if (!ret.meta) | ||
ret.meta = {}; | ||
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location", "last-modified", "etag", "status"].forEach(function(header) { | ||
if (res.headers[header]) | ||
ret.meta[header] = res.headers[header]; | ||
}); | ||
if (callback) | ||
callback(null, ret); | ||
}); | ||
}; | ||
/** section: github | ||
* user#getKey(msg, callback) -> null | ||
* - msg (Object): Object that contains the parameters and their values to be sent to the server. | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -666,3 +708,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -676,3 +718,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -687,6 +729,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - title (String): Required. | ||
@@ -710,3 +752,3 @@ * - key (String): Required. | ||
} | ||
if (!ret) | ||
@@ -720,3 +762,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -731,6 +773,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -755,3 +797,3 @@ * - title (String): Required. | ||
} | ||
if (!ret) | ||
@@ -765,3 +807,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -776,6 +818,6 @@ callback(null, ret); | ||
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument. | ||
* | ||
* | ||
* ##### Params on the `msg` object: | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent'. | ||
* | ||
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'. | ||
* - id (String): Required. | ||
@@ -798,3 +840,3 @@ **/ | ||
} | ||
if (!ret) | ||
@@ -808,3 +850,3 @@ ret = {}; | ||
}); | ||
if (callback) | ||
@@ -811,0 +853,0 @@ callback(null, ret); |
@@ -221,2 +221,17 @@ /* | ||
it("should successfully execute GET /user/:user/keys (getKeysFromUser)", function(next) { | ||
client.user.getKeysFromUser( | ||
{ | ||
user: "String", | ||
page: "Number", | ||
per_page: "Number" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute GET /user/keys/:id (getKey)", function(next) { | ||
@@ -223,0 +238,0 @@ client.user.getKey( |
@@ -0,1 +1,2 @@ | ||
#!/usr/bin/env node | ||
/** section: github, internal | ||
@@ -27,3 +28,3 @@ * class ApiGenerator | ||
var main = module.exports = function(versions, restore) { | ||
var main = module.exports = function(versions, tests, restore) { | ||
Util.log("Generating for versions", Object.keys(versions)); | ||
@@ -69,5 +70,5 @@ | ||
"with an error as first argument and result data as second argument.", | ||
indent + " * ", | ||
indent + " *", | ||
indent + " * ##### Params on the `msg` object:", | ||
indent + " * " | ||
indent + " *" | ||
]; | ||
@@ -210,2 +211,6 @@ comment.push(indent + " * - headers (Object): Optional. Key/ value pair " | ||
// When we don't need to generate tests, bail out here. | ||
if (!tests) | ||
return; | ||
def = testSections[section]; | ||
@@ -239,8 +244,10 @@ // test if previous tests already contained implementations by checking | ||
.alias("r", "restore") | ||
.default("r", false) | ||
.describe("r", "Restore .bak files, generated by a previous run, to the original") | ||
.alias("v", "version") | ||
.describe("v", "Semantic version number of the API to generate. Example: '3.0.0'") | ||
.alias("t", "tests") | ||
.describe("t", "Also generate unit test scaffolds") | ||
.alias("h", "help") | ||
.describe("h", "Display this usage information") | ||
.boolean(["r", "t", "h"]) | ||
.argv; | ||
@@ -291,3 +298,3 @@ | ||
Util.log("Starting up..."); | ||
main(versions, argv.restore); | ||
main(versions, argv.tests, argv.restore); | ||
} |
80
index.js
@@ -183,2 +183,9 @@ "use strict"; | ||
var pathPrefix = ""; | ||
// Check if a prefix is passed in the config and strip any leading or trailing slashes from it. | ||
if (typeof config.pathPrefix == "string") { | ||
pathPrefix = "/" + config.pathPrefix.replace(/(^[\/]+|[\/]+$)/g, ""); | ||
this.config.pathPrefix = pathPrefix; | ||
} | ||
this.setupRoutes(); | ||
@@ -392,2 +399,9 @@ }; | ||
* }); | ||
* | ||
* // or oauth key/ secret | ||
* github.authenticate({ | ||
* type: "oauth", | ||
* key: "clientID", | ||
* secret: "clientSecret" | ||
* }); | ||
**/ | ||
@@ -399,8 +413,10 @@ this.authenticate = function(options) { | ||
} | ||
if (!options.type || "basic|oauth".indexOf(options.type) === -1) | ||
throw new Error("Invalid authentication type, must be 'basic' or 'oauth'"); | ||
if (!options.type || "basic|oauth|client".indexOf(options.type) === -1) | ||
throw new Error("Invalid authentication type, must be 'basic', 'oauth' or 'client'"); | ||
if (options.type == "basic" && (!options.username || !options.password)) | ||
throw new Error("Basic authentication requires both a username and password to be set"); | ||
if (options.type == "oauth" && !options.token) | ||
throw new Error("OAuth2 authentication requires a token to be set"); | ||
if (options.type == "oauth") { | ||
if (!options.token && !(options.key && options.secret)) | ||
throw new Error("OAuth2 authentication requires a token or key & secret to be set"); | ||
} | ||
@@ -550,10 +566,15 @@ this.auth = options; | ||
function getQueryAndUrl(msg, def, format) { | ||
function getQueryAndUrl(msg, def, format, config) { | ||
var url = def.url; | ||
if (config.pathPrefix) { | ||
url = config.pathPrefix + def.url; | ||
} | ||
var ret = { | ||
url: def.url, | ||
query: format == "json" ? {} : [] | ||
}; | ||
if (!def || !def.params) | ||
if (!def || !def.params) { | ||
ret.url = url; | ||
return ret; | ||
var url = def.url; | ||
} | ||
Object.keys(def.params).forEach(function(paramName) { | ||
@@ -612,17 +633,36 @@ paramName = paramName.replace(/^[$]+/, ""); | ||
: "query"; | ||
var obj = getQueryAndUrl(msg, block, format); | ||
var obj = getQueryAndUrl(msg, block, format, self.config); | ||
var query = obj.query; | ||
var url = this.config.url ? this.config.url + obj.url : obj.url; | ||
var path = (!hasBody && query.length) | ||
? url + "?" + query.join("&") | ||
: url; | ||
var path = url; | ||
var protocol = this.config.protocol || this.constants.protocol || "http"; | ||
var host = this.config.host || this.constants.host; | ||
var port = this.config.port || this.constants.port || (protocol == "https" ? 443 : 80); | ||
if (this.config.proxy) { | ||
host = this.config.proxy.host; | ||
port = this.config.proxy.port || 3128; | ||
var proxyUrl; | ||
if (this.config.proxy !== undefined) { | ||
proxyUrl = this.config.proxy; | ||
} else { | ||
proxyUrl = process.env.HTTPS_PROXY || process.env.HTTP_PROXY; | ||
} | ||
if (proxyUrl) { | ||
path = Url.format({ | ||
protocol: protocol, | ||
hostname: host, | ||
port: port, | ||
pathname: path | ||
}); | ||
if (!/^(http|https):\/\//.test(proxyUrl)) | ||
proxyUrl = "https://" + proxyUrl; | ||
var parsedUrl = Url.parse(proxyUrl); | ||
protocol = parsedUrl.protocol.replace(":", ""); | ||
host = parsedUrl.hostname; | ||
port = parsedUrl.port || (protocol == "https" ? 443 : 80); | ||
} | ||
if (!hasBody && query.length) | ||
path += "?" + query.join("&"); | ||
var headers = { | ||
@@ -646,4 +686,10 @@ "host": host, | ||
case "oauth": | ||
path += (path.indexOf("?") === -1 ? "?" : "&") + | ||
"access_token=" + encodeURIComponent(this.auth.token); | ||
if (this.auth.token) { | ||
path += (path.indexOf("?") === -1 ? "?" : "&") + | ||
"access_token=" + encodeURIComponent(this.auth.token); | ||
} else { | ||
path += (path.indexOf("?") === -1 ? "?" : "&") + | ||
"client_id=" + encodeURIComponent(this.auth.key) + | ||
"&client_secret=" + encodeURIComponent(this.auth.secret); | ||
} | ||
break; | ||
@@ -650,0 +696,0 @@ case "token": |
{ | ||
"name" : "github", | ||
"version" : "0.1.12", | ||
"version" : "0.1.13", | ||
"description" : "NodeJS wrapper for the GitHub API", | ||
@@ -5,0 +5,0 @@ "author": "Mike de Boer <info@mikedeboer.nl>", |
@@ -39,2 +39,3 @@ # JavaScript GitHub API for Node.JS | ||
host: "github.my-GHE-enabled-company.com", | ||
pathPrefix: "/api/v3", // for some GHEs | ||
timeout: 5000 | ||
@@ -97,2 +98,9 @@ }); | ||
// OAuth2 Key/Secret | ||
github.authenticate({ | ||
type: "oauth", | ||
key: "clientID", | ||
secret: "clientSecret" | ||
}) | ||
// Deprecated Gihub API token (seems not to be working with the v3 API) | ||
@@ -105,2 +113,25 @@ github.authenticate({ | ||
### Creating tokens for your application | ||
[Create a new authorization](http://developer.github.com/v3/oauth/#create-a-new-authorization) for your application giving it access to the wanted scopes you need instead of relying on username / password and is the way to go if you have [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) on. | ||
For example: | ||
1. Use github.authenticate() to auth with GitHub using your username / password | ||
2. Create an application token programmatically with the scopes you need and, if you use two-factor authentication send the `X-GitHub-OTP` header with the one-time-password you get on your token device. | ||
```javascript | ||
github.authorization.create({ | ||
scopes: ["user", "public_repo", "repo", "repo:status", "gist"], | ||
note: "what this auth is for", | ||
note_url: "http://url-to-this-auth-app", | ||
headers: { | ||
"X-GitHub-OTP": "two-factor-code" | ||
} | ||
}, function(err, res) { | ||
if (res.token) { | ||
//save and use res.token as in the Oauth process above from now on | ||
} | ||
}); | ||
``` | ||
## Implemented GitHub APIs | ||
@@ -107,0 +138,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15628
166
644847
46
7