1.9.4 • Published 2 years ago

cakemail_api v1.9.4

Weekly downloads
-
License
Unlicense
Repository
-
Last release
2 years ago

cakemail_api

CakemailApi - JavaScript client for cakemail_api The Cakemail API exposes multiple APIs including Authentication, Marketing, Contact, Transactional, Analytic, Content, Account and Partner. This SDK is automatically generated by the OpenAPI Generator project:

  • API version: stagingrelease-1.9.4.6
  • Package version: stagingrelease-1.9.4.6
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install cakemail_api --save

Finally, you need to build the module:

npm run build
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

To use the link you just defined in your project, switch to the directory you want to use your cakemail_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

git

If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var CakemailApi = require('cakemail_api');

var defaultClient = CakemailApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
var OAuth2PasswordBearer = defaultClient.authentications['OAuth2PasswordBearer'];
OAuth2PasswordBearer.accessToken = "YOUR ACCESS TOKEN"

var api = new CakemailApi.AccountApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSelfAccount(callback);

Documentation for API Endpoints

All URIs are relative to https://api-gateway.staging.ovh.cakemail.io

ClassMethodHTTP requestDescription
CakemailApi.AccountApigetSelfAccountGET /accounts/selfShow my account details
CakemailApi.AccountApipatchSelfAccountPATCH /accounts/selfUpdate my account
CakemailApi.ActionApicreateActionPOST /workflows/{workflow_id}/actionsCreate an action
CakemailApi.ActionApideleteActionDELETE /workflows/{workflow_id}/actions/{action_id}Delete an action
CakemailApi.ActionApigetActionGET /workflows/{workflow_id}/actions/{action_id}Get an action
CakemailApi.ActionApilistActionLinksGET /workflows/{workflow_id}/actions/{action_id}/linksShow action links
CakemailApi.ActionApilistActionsGET /workflows/{workflow_id}/actionsList actions
CakemailApi.ActionApipatchActionPATCH /workflows/{workflow_id}/actions/{action_id}Update an action
CakemailApi.ActionApirenderActionGET /workflows/{workflow_id}/actions/{action_id}/renderRender an action
CakemailApi.ActionApisendTestActionPOST /workflows/{workflow_id}/actions/{action_id}/send-testSend a test of an action
CakemailApi.CampaignApiarchiveCampaignPOST /campaigns/{campaign_id}/archiveArchive a campaign
CakemailApi.CampaignApicancelCampaignPOST /campaigns/{campaign_id}/cancelCancel a campaign
CakemailApi.CampaignApicreateCampaignPOST /campaignsCreate a campaign
CakemailApi.CampaignApideleteCampaignDELETE /campaigns/{campaign_id}Delete a campaign
CakemailApi.CampaignApigetCampaignGET /campaigns/{campaign_id}Show a campaign details
CakemailApi.CampaignApilistCampaignsGET /campaignsShow all campaigns
CakemailApi.CampaignApilistLinksGET /campaigns/{campaign_id}/linksShow a campaign links
CakemailApi.CampaignApipatchCampaignPATCH /campaigns/{campaign_id}Update a campaign
CakemailApi.CampaignApirenderCampaignGET /campaigns/{campaign_id}/renderRender a campaign
CakemailApi.CampaignApirescheduleCampaignPOST /campaigns/{campaign_id}/rescheduleReschedule a campaign
CakemailApi.CampaignApiresumeCampaignPOST /campaigns/{campaign_id}/resumeResume a campaign
CakemailApi.CampaignApischeduleCampaignPOST /campaigns/{campaign_id}/scheduleSchedule a campaign
CakemailApi.CampaignApisendTestEmailPOST /campaigns/{campaign_id}/send-testSend a test email
CakemailApi.CampaignApisuspendCampaignPOST /campaigns/{campaign_id}/suspendSuspend a campaign
CakemailApi.CampaignApiunarchiveCampaignPOST /campaigns/{campaign_id}/unarchiveUnarchive a campaign
CakemailApi.CampaignApiunscheduleCampaignPOST /campaigns/{campaign_id}/unscheduleUnschedule a campaign
CakemailApi.CampaignBlueprintApigetCampaignBlueprintGET /campaign-blueprints/{blueprint_id}Get a campaign blueprint
CakemailApi.CampaignBlueprintApilistCampaignBlueprintsGET /campaign-blueprintsShow all campaign blueprints
CakemailApi.CampaignBlueprintApirenderCampaignBlueprintGET /campaign-blueprints/{blueprint_id}/renderRender campaign blueprint
CakemailApi.ContactApicreateContactPOST /lists/{list_id}/contactsAdd a contact to a list
CakemailApi.ContactApideleteContactDELETE /lists/{list_id}/contacts/{contact_id}Delete a contact
CakemailApi.ContactApigetContactGET /lists/{list_id}/contacts/{contact_id}Show a contact details
CakemailApi.ContactApiimportContactsPOST /lists/{list_id}/import-contactsImport contacts
CakemailApi.ContactApilistContactsOfListGET /lists/{list_id}/contactsShow all contacts in a list
CakemailApi.ContactApilistContactsOfSegmentGET /lists/{list_id}/segments/{segment_id}/contactsShow all contacts in a segment
CakemailApi.ContactApipatchContactPATCH /lists/{list_id}/contacts/{contact_id}Update a contact
CakemailApi.ContactApiunsubscribeContactPOST /lists/{list_id}/contacts/{contact_id}/unsubscribeUnsubscribe a contact from a list
CakemailApi.CustomAttributeApicreateCustomAttributePOST /lists/{list_id}/custom-attributesCreate a custom attribute
CakemailApi.CustomAttributeApideleteCustomAttributeDELETE /lists/{list_id}/custom-attributes/{name}Delete a custom attribute
CakemailApi.CustomAttributeApigetCustomAttributeGET /lists/{list_id}/custom-attributes/{name}Show a custom attribute
CakemailApi.CustomAttributeApilistCustomAttributesGET /lists/{list_id}/custom-attributesShow all custom attributes
CakemailApi.DomainApipatchDomainsPATCH /brands/default/domains/defaultChange domains
CakemailApi.DomainApishowDomainsGET /brands/default/domains/defaultShow domains
CakemailApi.DomainApivalidateDomainsGET /brands/default/domains/default/validateValidate domains
CakemailApi.FormApicreateFormPOST /formsCreate a form
CakemailApi.FormApideleteFormDELETE /forms/{form_id}Delete a form
CakemailApi.FormApigetFormGET /forms/{form_id}Show a form details
CakemailApi.FormApilistFormsGET /formsShow all forms
CakemailApi.FormApipatchFormPATCH /forms/{form_id}Update a form
CakemailApi.LinksApigetLinkGET /links/{link_id}Show a link information
CakemailApi.ListApiacceptListPolicyPOST /lists/{list_id}/accept-policyAccept policy for a list
CakemailApi.ListApiarchiveListPOST /lists/{list_id}/archiveArchive a list
CakemailApi.ListApicreateListPOST /listsCreate a List
CakemailApi.ListApideleteListDELETE /lists/{list_id}Delete a List
CakemailApi.ListApigetListGET /lists/{list_id}Show a list parameters
CakemailApi.ListApilistListsGET /listsShow all lists
CakemailApi.ListApipatchListPATCH /lists/{list_id}Update a list parameters
CakemailApi.ListApiunarchiveListPOST /lists/{list_id}/unarchiveUnarchive a list
CakemailApi.LogApigetActionLogsGET /logs/workflows/{workflow_id}/actions/{action_id}Show action logs
CakemailApi.LogApigetCampaignLogsGET /logs/campaigns/{campaign_id}Show campaign logs
CakemailApi.LogApigetEmailLogsGET /logs/emailsShow transactional email logs
CakemailApi.LogApigetListLogsGET /logs/lists/{list_id}Show list logs
CakemailApi.LogoApiuploadDefaultLogoPUT /brands/default/logos/defaultUpload a default logo
CakemailApi.ReportApigetAccountStatsGET /reports/accounts/{account_id}Show an account report
CakemailApi.ReportApigetActionStatsGET /reports/workflows/{workflow_id}/actions/{action_id}Show action report
CakemailApi.ReportApigetCampaignLinksStatsGET /reports/campaigns/{campaign_id}/linksShow campaign links report
CakemailApi.ReportApigetCampaignStatsGET /reports/campaigns/{campaign_id}Show campaign report
CakemailApi.ReportApigetEmailsStatsGET /reports/emailsShow transactional email report
CakemailApi.ReportApigetListStatsGET /reports/lists/{list_id}Show list report
CakemailApi.ReportApigetSelfAccountStatsGET /reports/accounts/selfShow my account report
CakemailApi.SegmentApicreateSegmentPOST /lists/{list_id}/segmentsCreate a segment
CakemailApi.SegmentApideleteSegmentDELETE /lists/{list_id}/segments/{segment_id}Delete a segment
CakemailApi.SegmentApigetSegmentGET /lists/{list_id}/segments/{segment_id}Show a segment details
CakemailApi.SegmentApilistSegmentsGET /lists/{list_id}/segmentsShow all segments
CakemailApi.SegmentApipatchSegmentPATCH /lists/{list_id}/segments/{segment_id}Update a segment
CakemailApi.SenderApiconfirmSenderPOST /brands/default/senders/confirm-emailConfirm a sender
CakemailApi.SenderApicreateSenderPOST /brands/default/sendersAdd a sender
CakemailApi.SenderApideleteSenderDELETE /brands/default/senders/{sender_id}Delete a sender
CakemailApi.SenderApigetSenderGET /brands/default/senders/{sender_id}Show a sender details
CakemailApi.SenderApilistSendersGET /brands/default/sendersShow all senders
CakemailApi.SenderApipatchSenderPATCH /brands/default/senders/{sender_id}Update a sender
CakemailApi.SenderApiresendConfirmationEmailPOST /brands/default/senders/{sender_id}/resend-confirmation-emailResend confirmation email
CakemailApi.SubAccountApiconfirmAccountPOST /accounts/{account_id}/confirmConfirm sub-account creation
CakemailApi.SubAccountApicreateAccountPOST /accountsCreate a sub-account
CakemailApi.SubAccountApideleteAccountDELETE /accounts/{account_id}Delete a sub-account
CakemailApi.SubAccountApigetAccountGET /accounts/{account_id}Show a sub-account details
CakemailApi.SubAccountApilistAccountsGET /accountsShow all sub-accounts
CakemailApi.SubAccountApipatchAccountPATCH /accounts/{account_id}Update a sub-account
CakemailApi.SubAccountApiresendAccountVerificationPOST /accounts/resend-verification-emailResend the account verification email
CakemailApi.SubAccountApisuspendAccountPOST /accounts/{account_id}/suspendSuspend a sub-account
CakemailApi.SubAccountApiunsuspendAccountPOST /accounts/{account_id}/unsuspendUnsuspend a sub-account
CakemailApi.SuppressedEmailApicreateSuppressedEmailPOST /suppressed-emailsAdd a suppressed email
CakemailApi.SuppressedEmailApideleteSuppressedEmailDELETE /suppressed-emails/{email}Delete a suppressed email
CakemailApi.SuppressedEmailApilistSuppressedEmailsGET /suppressed-emailsShow all suppressed emails
CakemailApi.SystemEmailApipatchSystemEmailsPATCH /brands/default/system-emailsUpdate system emails configuration
CakemailApi.SystemEmailApisetSystemEmailsPUT /brands/default/system-emailsSet system emails configuration
CakemailApi.SystemEmailApishowSystemEmailsGET /brands/default/system-emailsShow system emails configuration
CakemailApi.TemplateApicreateTemplatePOST /templatesCreate a template
CakemailApi.TemplateApideleteTemplateDELETE /templates/{template_id}Delete a template
CakemailApi.TemplateApigetTemplateGET /templates/{template_id}Get a template
CakemailApi.TemplateApilistTemplatesGET /templatesShow all templates
CakemailApi.TemplateApipatchTemplatePATCH /templates/{template_id}Update a template
CakemailApi.TemplateApirenderTemplateGET /templates/{template_id}/renderRender a template
CakemailApi.TokenApicreateTokenPOST /tokenCreate a token
CakemailApi.TokenApirefreshTokenPUT /tokenRefresh a token
CakemailApi.TransactionalEmailApisendEmailPOST /emailsSend a transactional email
CakemailApi.UserApiconfirmUserPOST /users/{user_id}/confirmConfirm a user
CakemailApi.UserApicreateUserPOST /usersCreate a user
CakemailApi.UserApideleteUserDELETE /users/{user_id}Delete a user
CakemailApi.UserApiforgotMyPasswordPOST /users/forgot-my-passwordForgot my password
CakemailApi.UserApigetSelfUserGET /users/selfShow my user details
CakemailApi.UserApigetUserGET /users/{user_id}Show a user details
CakemailApi.UserApilistUsersGET /usersShow all users in my account
CakemailApi.UserApipatchUserPATCH /users/{user_id}Update a user
CakemailApi.UserApiresendUserVerificationPOST /users/{user_id}/resend-verification-emailResend the user verification email
CakemailApi.UserApiresetPasswordConfirmPOST /users/reset-password-confirmReset password confirmation
CakemailApi.UserApiresetSelfPasswordPOST /users/self/reset-passwordReset my password
CakemailApi.UserApiresetUserPasswordPOST /users/{user_id}/reset-passwordReset a user password
CakemailApi.UserApisuspendUserPOST /users/{user_id}/suspendSuspend a user
CakemailApi.UserApiunsuspendUserPOST /users/{user_id}/unsuspendUnsuspend a user
CakemailApi.WebhookApiarchiveWebhookPOST /webhooks/{webhook_id}/archiveArchive a webhook
CakemailApi.WebhookApicreateWebhookPOST /webhooksCreate a webhook
CakemailApi.WebhookApigetWebhookGET /webhooks/{webhook_id}Show a webhook
CakemailApi.WebhookApilistWebhooksGET /webhooksList all webhooks
CakemailApi.WebhookApipatchWebhookPATCH /webhooks/{webhook_id}Patch a webhook
CakemailApi.WebhookApiunarchiveWebhookPOST /webhooks/{webhook_id}/unarchiveUnarchive a webhook
CakemailApi.WorkflowApiactivateWorkflowPOST /workflows/{workflow_id}/activateActivate a workflow
CakemailApi.WorkflowApicreateWorkflowPOST /workflowsCreate a workflow
CakemailApi.WorkflowApideactivateWorkflowPOST /workflows/{workflow_id}/deactivateDeactivate a workflow
CakemailApi.WorkflowApideleteWorkflowDELETE /workflows/{workflow_id}Delete a workflow
CakemailApi.WorkflowApigetWorkflowGET /workflows/{workflow_id}Show a workflow
CakemailApi.WorkflowApilistWorkflowsGET /workflowsShow all workflows
CakemailApi.WorkflowApilockWorkflowPOST /workflows/{workflow_id}/lockLock a workflow
CakemailApi.WorkflowApipatchWorkflowPATCH /workflows/{workflow_id}Update a workflow
CakemailApi.WorkflowApiunlockWorkflowPOST /workflows/{workflow_id}/unlockUnlock a workflow
CakemailApi.WorkflowBlueprintApigetWorkflowBlueprintGET /workflow-blueprints/{blueprint_id}Show a workflow blueprint
CakemailApi.WorkflowBlueprintApigetWorkflowBlueprintActionGET /workflow-blueprints/{blueprint_id}/actions/{action_id}Show a workflow blueprint action
CakemailApi.WorkflowBlueprintApilistWorkflowBlueprintActionsGET /workflow-blueprints/{blueprint_id}/actionsShow workflow blueprint actions
CakemailApi.WorkflowBlueprintApilistWorkflowBlueprintsGET /workflow-blueprintsShow all workflow blueprints

Documentation for Models

Documentation for Authorization

OAuth2PasswordBearer

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes:
    • user: Grants read-write to customer endpoints
    • admin: Grants read-write to restricted endpoints
    • internal: Grants write access to internal endpoints
1.9.4

2 years ago

0.0.476

3 years ago