Skip to content

Files

Latest commit

def8cc8 · Oct 30, 2020

History

History
39 lines (28 loc) · 1.09 KB

SUBSCRIPTIONS_API.md

File metadata and controls

39 lines (28 loc) · 1.09 KB

Subscriptions API

Get All Subscriptions

Retrieves the subscriptions.

const RenderforestClient = require('@renderforest/sdk-node')

const Renderforest = new RenderforestClient({ signKey: '<signKey>', clientId: -1 })

Renderforest.getSubscriptions({
  status: 'active'
})
  .then(console.log) // handle the success
  .catch(console.error) // handle the error
  • The possible values of subscription status are: 'active', 'closed'.

See example

Get a Specific Subscription

Gets a specific subscription.

const RenderforestClient = require('@renderforest/sdk-node')

const Renderforest = new RenderforestClient({ signKey: '<signKey>', clientId: -1 })

Renderforest.getSubscription(122)
  .then(console.log) // handle the success
  .catch(console.error) // handle the error

See example

⬆ back to the top