Fetch a Project

Fetches a owned project or a project where the user is collaborating to.


Both users and collaborators can access this API, via OAuth projects scope (or HTTP Basic Authentication for development purposes).



Example request

$ curl<access_token>


A project is returned, with the following fields:

id Unique id - You will use it while performing Update, Fetch and Delete requests
name Human-friendly name of the project.
repository_url URL of the repository where we need to connect to fetch the code.
description An arbitrary string which you can attach to the project.
build_state The actual state of your project
owned True or False, indicates if the project is owned by you or not.
ssh_public_key The public SSH key to be added to project repository.

Example response

  "response": {
    "id": 123456789123456789,
    "id_str": "123456789123456789",
    "name": "Sinatra",
    "description": "Classy web-development dressed in a DSL",
    "repository_url": "",
    "build_state": "new",
    "owned": true,
    "ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFmRIuChcnMFO7T1UuuTWxBtaOpLebx/duxK6RMhyAw+Bt/yxCejXZNazLF1K3AZtAICT+ydngYRlI355DsCzmkq8EclFsvUttTitI7DBiSQHH4yoAzABC8ZtEIRa5UrxsL7Qp1CxOkXur6wyWhd39rtXvEfFgu3xprChoQALa51/LSApn1Q4R8190R3ispDLUODUn6LQEfUvzVztBypGGP5PvV4qQogWRRyGhX5J6ZYL8Fj6HuYA/amEzAaKwtyoWIVDllqxVDXkeTfX3197KdfS2W/c2GYCsYNi+QkoHCC4NZ+CzOvVTuVYGTMII/OzB63VMn7TEhcS4N2k8TM/V"


There are no specific errors for this API.

comments powered by Disqus