1.15.2 • Published 8 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months 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
CustomEventsApicreateDefinitionPOST /event/definitionsCreate an event definition
CustomEventsApicreatePropertyDefinitionPOST /event/definitions/{name}/propertiesCreate an event property definition
CustomEventsApipropertyDefinitionDELETE /event/definitions/{name}/properties/{propertyName}Delete an event property definition
CustomEventsApipropertyDefinition_0PATCH /event/definitions/{name}/properties/{propertyName}Update an event property definition
CustomEventsApiretrieveDefinitionGET /event/definitions/{name}Retrieve an event definition
CustomEventsApisendEventPOST /event/eventsSend an event
CustomEventsApiupdateDefinitionPATCH /event/definitions/{name}Update an event definition
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.15.2

8 months ago

1.15.1

8 months ago

1.15.0

9 months ago

1.14.0

10 months ago

1.13.1

12 months ago

1.13.0

1 year ago

1.12.2

1 year ago

1.12.1

1 year ago

1.12.0

1 year ago

1.11.2

1 year ago

1.11.1

1 year ago

1.11.0

2 years ago

1.10.3

2 years ago

1.10.2

2 years ago

1.9.1

2 years ago

1.9.0

2 years ago

1.8.3

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.8.2

2 years ago

1.8.1

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.4

2 years ago

1.4.3

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago