now-client-isomorphic v0.0.3
Isomorphic 𝚫 now client
This is currently a fork of the now-client with the intention of being able to be run in both node and the browser (and adds more semicolons).
$ npm install --save now-client-isomorphic
API
Now
Class wrapper around Zeit's 𝚫 now API
Parameters
token
string
getDeployments
Returns all current deployments under the account
Returns Promise<Array<{uid: string, name: string, url: string, created: string}>>
getDeployment
Returns single deployment data
Parameters
deploymentId
string
Returns Promise<{uid: string, host: string, state: string, stateTs: string}>
createDeployment
Creates deployment
Parameters
data
{package: string}
Returns Promise<{uid: string, host: string, state: string}>
deleteDeployment
Deletes specific deployment
Parameters
deploymentId
string
getFiles
Gets list of files from deployment
Parameters
deploymentId
string
Returns Promise<Array<Object>>
getFile
Gets file data for specific file id
Parameters
getDomains
Returns list of domains registered
Returns Promise<Array<Object>>
addDomain
Ability to add a domain
Parameters
deleteDomain
Delete a previously registered domain name from now
Parameters
name
string
getDomainRecords
Get a list of DNS records created for a domain name
Parameters
domain
string
addDomainRecord
Create a DNS record for a domain
Parameters
Returns Promise<{uid: string}>
deleteDomainRecord
Delete a DNS record created for a domain name
Parameters
getCertificates
Retrieves a list of certificates issued for the authenticating user
Parameters
cn
string
createCertificate
Issue a new certification
Parameters
cn
string
renewCertificate
Renew a new certification
Parameters
cn
string
replaceCertificate
Replace an existing or create a new certificate entry with a user-supplied certificate
Parameters
deleteCertificate
Delete an existing certificate entry
Parameters
cn
string
getAliases
Retrieves all of the active now aliases for the authenticating user
Parameters
id
string?
createAlias
Creates a new alias for the deployment
Parameters
deleteAlias
Delete an alias by id
Parameters
id
string
getSecrets
Retrieves all of the active now secrets
createSecret
Creates a new secret
Parameters
renameSecret
Edit the name of a user's secret
Parameters
deleteSecret
Delete a user's secret.
Parameters
id
string