GitHub
List Repositories
Returns GitHub repositories from the connected account.
GET
/
v1
/
account
/
integrations
/
github
/
repositories
Authorization
const { setToken, Account } = require('@evecloud/sdk');
setToken('TOKEN');
Account.integrations.github.repositories.list().then((repositories) => {
console.log(repositories.data);
}).catch((error) => {
console.log(error);
});
{
"data": {
"branches": [
"main",
"develop",
"v1.0.0"
],
"default_branch": "master",
"id": 517271307,
"installationId": "37492764",
"name": "EveCloud/example",
"private": true
},
"meta": {
"limit": 10,
"page": 1,
"total": 1
}
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200 - application/json
data
object
meta
object
Was this page helpful?
const { setToken, Account } = require('@evecloud/sdk');
setToken('TOKEN');
Account.integrations.github.repositories.list().then((repositories) => {
console.log(repositories.data);
}).catch((error) => {
console.log(error);
});
{
"data": {
"branches": [
"main",
"develop",
"v1.0.0"
],
"default_branch": "master",
"id": 517271307,
"installationId": "37492764",
"name": "EveCloud/example",
"private": true
},
"meta": {
"limit": 10,
"page": 1,
"total": 1
}
}