Project
Instance methods:
Static methods and properties:
Instance Methods
constructor: Project(credentials, id)
Arguments
credentials
(Credentials): Valid credentials corresponding to the current userid
(String): The project's ID
Returns
(Project) A Project instance
getDataTable()
new Project(credentials, id).getDataTable()
is equivalent to
new DataTable(credentials, id)
delete()
Returns
TODO
listUsers()
Returns
(Promise --> Object)
Resolves to the serialized
API response
share(email, permission)
Arguments
email
(String): Email address of the user to share withpermission
(Permission): Level of access to grant the user
NOTE: Node SDK only.
unshare(userId)
Arguments
userId
(String): User ID (see User.fetchProfile). Not the Maker ID or email address.
NOTE: Node SDK only.
Static Methods and Properties
listProjects(credentials)
Arguments
credentials
(Credentials): Valid credentials corresponding to the current user
Returns
(Promise --> Object)
Resolves to the serialized
API response
createProject(credentials, name, [options])
Arguments
credentials
(Credentials): Valid credentials corresponding to the current username
(String): The name of the new projectoptions
(Object ={ app: String }
)app
(default:"blank"
): The base app for the project
Returns
(Promise --> Object)
Resolves to the serialized API
response
serialize
Set to override how the SDK serializes single-entity project API responses, such
as createProject
.
By default, this will return an Object
with the structure:
type ProjectResponse = {
id: String,
name: String,
creatorId: String,
creatorName: String,
timeCreated: Date,
timeUpdated: Date,
}
See Serialization for more information.
serializeList
Set to override how the SDK serializes multiple-entity project API responses,
such as listProjects
.
By default, this will return an Object
with the structure:
type ProjectsResponse = {
entities: ProjectResponse[],
}
See Serialization for more information.