Movatterモバイル変換


[0]ホーム

URL:


Project

Project

Project encapsulates the functionality to create, query, and modify cards and columns.

Constructor

new Project(id, authopt, apiBaseopt)

Create a Project.

Parameters:
NameTypeAttributesDefaultDescription
idstring

the id of the project

authRequestable.auth <optional>

information required to authenticate to Github

apiBasestring <optional>
https://api.github.com

the base Github API URL

Source:

Methods

createProjectCard(colId, options, cb) → {Promise}

Create a new card

Parameters:
NameTypeDescription
colIdstring

the column id

optionsObject

the description of the card

cbRequestable.callback

will receive the newly created card

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

createProjectColumn(options, cb) → {Promise}

Create a new column

Parameters:
NameTypeDescription
optionsObject

the description of the column

cbRequestable.callback

will receive the newly created column

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

deleteProject(cb) → {Promise}

Delete a project

Parameters:
NameTypeDescription
cbRequestable.callback

will receive true if the operation is successful

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

deleteProjectCard(cardId, cb) → {Promise}

Delete a card

Parameters:
NameTypeDescription
cardIdstring

the card to be deleted

cbRequestable.callback

will receive true if the operation is successful

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

deleteProjectColumn(colId, cb) → {Promise}

Delete a column

Parameters:
NameTypeDescription
colIdstring

the column to be deleted

cbRequestable.callback

will receive true if the operation is successful

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

getProject(cb) → {Promise}

Get information about a project

Parameters:
NameTypeDescription
cbRequestable.callback

will receive the project information

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

getProjectCard(cardId, cb) → {Promise}

Get information about a card

Parameters:
NameTypeDescription
cardIdstring

the id of the card

cbRequestable.callback

will receive the card information

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

getProjectColumn(colId, cb) → {Promise}

Get information about a column

Parameters:
NameTypeDescription
colIdstring

the id of the column

cbRequestable.callback

will receive the column information

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

listColumnCards(colId, cbopt) → {Promise}

Get information about all cards of a column

Parameters:
NameTypeAttributesDescription
colIdstring

the id of the column

cbRequestable.callback <optional>

will receive the list of cards

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

listProjectCards(cbopt) → {Promise}

Get information about all cards of a project

Parameters:
NameTypeAttributesDescription
cbRequestable.callback <optional>

will receive the list of cards

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

listProjectColumns(cbopt) → {Promise}

Get information about all columns of a project

Parameters:
NameTypeAttributesDescription
cbRequestable.callback <optional>

will receive the list of columns

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

moveProjectCard(cardId, position, colId, cb) → {Promise}

Move a card

Parameters:
NameTypeDescription
cardIdstring

the card to be moved

positionstring

can be one of top, bottom, or after:,where is the id value of a card in the same project.

colIdstring

the id value of a column in the same project.

cbRequestable.callback

will receive true if the operation is successful

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

moveProjectColumn(colId, position, cb) → {Promise}

Move a column

Parameters:
NameTypeDescription
colIdstring

the column to be moved

positionstring

can be one of first, last, or after:,where is the id value of a column in the same project.

cbRequestable.callback

will receive true if the operation is successful

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

updateProject(options, cb) → {Promise}

Edit a project

Parameters:
NameTypeDescription
optionsObject

the description of the project

cbRequestable.callback

will receive the modified project

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

updateProjectCard(cardId, options, cb) → {Promise}

Edit a card

Parameters:
NameTypeDescription
cardIdstring

the card id

optionsObject

the description of the card

cbRequestable.callback

will receive the modified card

Source:
See:
Returns:
  • the promise for the http request
Type
Promise

updateProjectColumn(colId, options, cb) → {Promise}

Edit a column

Parameters:
NameTypeDescription
colIdstring

the column id

optionsObject

the description of the column

cbRequestable.callback

will receive the modified column

Source:
See:
Returns:
  • the promise for the http request
Type
Promise


[8]ページ先頭

©2009-2025 Movatter.jp