1.12.2 • Published 1 month ago

@ycloud-cpaas/ycloud-sdk-node v1.12.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

YCloud SDK for Node.js

YCloud API

  • API version: v2

The YCloud API is organized around REST. Our API is designed to have predictable, resource-oriented URLs, return JSON responses, and use standard HTTP response codes and verbs.

Requirements

Node 8 or higher.

Installation

npm install @ycloud-cpaas/ycloud-sdk-node

Getting Started

Usage with TypeScript

Please follow the installation instruction and execute the following code:

import * as ycloud from '@ycloud-cpaas/ycloud-sdk-node'


const configuration = new ycloud.Configuration({apiKey: 'YOUR_API_KEY'});
const api = new ycloud.BalanceApi(configuration);
api.retrieve()
.then(value => {
  console.log('API called successfully. Returned data:', value.data);
})
.catch(reason => {
  console.error(reason.response.data);
});

Documentation for API Endpoints

All URIs are relative to https://api.ycloud.com/v2

ClassMethodHTTP requestDescription
BalanceApiretrieveGET /balanceRetrieve balance
ContactsApicreatePOST /contact/contactsCreate a contact
ContactsApideleteDELETE /contact/contacts/{id}Delete a contact
ContactsApilistGET /contact/contactsList contacts
ContactsApiretrieveGET /contact/contacts/{id}Retrieve a contact
ContactsApiupdatePATCH /contact/contacts/{id}Update a contact
EmailsApisendPOST /emailsSend an email
SmsApilistGET /smsList SMS records
SmsApisendPOST /smsSend an SMS
UnsubscribersApicreatePOST /unsubscribersCreate an unsubscriber
UnsubscribersApideleteByCustomerAndChannelDELETE /unsubscribers/{customer}/{channel}Delete an unsubscriber
UnsubscribersApilistGET /unsubscribersList unsubscribers
UnsubscribersApilistAllByCustomerGET /unsubscribers/{customer}List all unsubscribers by customer
UnsubscribersApiretrieveByCustomerAndChannelGET /unsubscribers/{customer}/{channel}Retrieve an unsubscriber
VerifyApicheckPOST /verify/verificationChecksCheck a verification
VerifyApisendPOST /verify/verificationsStart a verification
VoicesApilistGET /voicesList voice records
VoicesApisendPOST /voicesSend a voice code
WebhookEndpointsApicreatePOST /webhookEndpointsCreate a webhook endpoint
WebhookEndpointsApideleteDELETE /webhookEndpoints/{id}Delete a webhook endpoint
WebhookEndpointsApilistGET /webhookEndpointsList webhook endpoints
WebhookEndpointsApiretrieveGET /webhookEndpoints/{id}Retrieve a webhook endpoint
WebhookEndpointsApirotateSecretPOST /webhookEndpoints/{id}/rotateSecretRotate a webhook endpoint secret
WebhookEndpointsApiupdatePATCH /webhookEndpoints/{id}Update a webhook endpoint
WhatsappBusinessAccountsApilistGET /whatsapp/businessAccountsList WABAs
WhatsappBusinessAccountsApiretrieveGET /whatsapp/businessAccounts/{id}Retrieve a WABA
WhatsappInboundMessagesApimarkAsReadPOST /whatsapp/inboundMessages/{id}/markAsReadMark message as read
WhatsappMessagesApiretrieveGET /whatsapp/messages/{id}Retrieve a message
WhatsappMessagesApisendPOST /whatsapp/messagesEnqueue a message
WhatsappMessagesApisendDirectlyPOST /whatsapp/messages/sendDirectlySend a message directly
WhatsappPhoneNumbersApilistGET /whatsapp/phoneNumbersList phone numbers
WhatsappPhoneNumbersApiregisterPOST /whatsapp/phoneNumbers/{wabaId}/{phoneNumber}/registerRegister a phone number
WhatsappPhoneNumbersApiretrieveGET /whatsapp/phoneNumbers/{wabaId}/{phoneNumber}Retrieve a phone number
WhatsappPhoneNumbersApiretrieveCommerceSettingsGET /whatsapp/phoneNumbers/{wabaId}/{phoneNumber}/whatsappCommerceSettingsRetrieve commerce settings
WhatsappPhoneNumbersApiretrieveProfileGET /whatsapp/phoneNumbers/{wabaId}/{phoneNumber}/profileRetrieve a phone number profile
WhatsappPhoneNumbersApiupdateCommerceSettingsPATCH /whatsapp/phoneNumbers/{wabaId}/{phoneNumber}/whatsappCommerceSettingsUpdate commerce settings
WhatsappPhoneNumbersApiupdateProfilePATCH /whatsapp/phoneNumbers/{wabaId}/{phoneNumber}/profileUpdate a phone number profile
WhatsappTemplatesApicreatePOST /whatsapp/templatesCreate a template
WhatsappTemplatesApideleteByNameDELETE /whatsapp/templates/{wabaId}/{name}Delete templates by name
WhatsappTemplatesApideleteByNameAndLanguageDELETE /whatsapp/templates/{wabaId}/{name}/{language}Delete a template
WhatsappTemplatesApieditByNameAndLanguagePATCH /whatsapp/templates/{wabaId}/{name}/{language}Edit a template
WhatsappTemplatesApilistGET /whatsapp/templatesList templates
WhatsappTemplatesApiretrieveByNameAndLanguageGET /whatsapp/templates/{wabaId}/{name}/{language}Retrieve a template

Documentation for Authorization

Authentication schemes defined for the API:

api_key

  • Type: API key
  • API key parameter name: X-API-Key
  • Location: HTTP header
1.12.2

1 month ago

1.12.1

3 months ago

1.12.0

3 months ago

1.11.2

4 months ago

1.11.1

4 months ago

1.11.0

5 months ago

1.10.3

6 months ago

1.10.2

6 months ago

1.9.1

8 months ago

1.9.0

8 months ago

1.8.3

11 months ago

1.10.1

7 months ago

1.10.0

7 months ago

1.8.2

12 months ago

1.8.1

1 year ago

1.8.0

1 year ago

1.7.0

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago