@pentcloud/sdk
v1.0.11
Published
Software Development Kit
Downloads
19
Readme
Pentcloud SDK
Version 1.0.10
This version contains the following
- auth
- cognito
- dns
- domain
- mail
- ses
- payments
- serfinsa
- sms
- claro
- storage
- s3
- tools
- shortener
- fel
- infile
- megaprint
Hot to use
const sdk = require('@pentcloud/sdk')({
apiHost: '',
apiKey: 'XXXXX-xxxx-xxxx',
apiVersion: 'v1',
})
// cognito with default options
const defaultOptions = {
app: '',
pool: '',
client: '',
}
sdk.auth.cognito(defaultOptions).user.signin({
username: '',
password: '',
})
// cognito without default options
dk.auth.cognito().user.signin({
client: '',
username: '',
password: '',
})
auth
cognito
const cognito = sdk.auth.cognito()
cognito.user.destroy()
cognito.user.disable()
cognito.user.enable()
cognito.user.signin()
cognito.user.signup()
cognito.user.update()
cognito.password.forgot()
cognito.password.confirm()
cognito.password.update()
cognito.token.refresh()
dns
domain
const domain = sdk.dns.domain()
domain.create()
domain.validate()
ses
const ses = sdk.mail.ses()
ses.send()
payments
serfinsa
const serfinsa = sdk.payments.serfinsa()
serfinsa.checkout()
sms
claro
const claro = sdk.sms.claro()
claro.send()
storage
s3
const s3 = sdk.storage.s3()
s3.file.upload()
s3.file.download()
s3.file.delete()
tools
shortener
const shortener = sdk.tools.shortener()
shortener.create()
fel
infile
const infile = sdk.fel.infile()
infile.bill()
megaprint
const megaprint = sdk.fel.megaprint()
megaprint.token()
megaprint.pdf()
megaprint.bill()
megaprint.cancelInvoice()
megaprint.creditNote()
megaprint.client()