Cloudflare DDNS Sync
StartSyncChangelog
  • Overview
  • Configuration
  • Functions
  • Cron Expression Syntax
  • Changelog
  • Functions
    • Constructor
    • getIp
    • getIpv6
    • getRecordDataForDomain
    • getRecordDataForDomains
    • getRecordDataForRecord
    • getRecordDataForRecords
    • removeRecord
    • syncByCrontime
    • syncOnIpChange
    • stopSyncOnIpChange
    • syncRecord
    • syncRecords
  • Types
    • DomainRecordList
    • Record
    • RecordData
    • RecordTypes
    • SingleSyncCallback
    • MultiSyncCallback
    • ZoneData
    • ZoneMap
Powered by GitBook
On this page

Was this helpful?

  1. Functions

Constructor

There are two ways to create a new instance of Cloudflare-DDNS-Sync:

1. Using a Cloudflare API-Token

const cddnss = new CloudflareDDNSSync({
  token: 'your-cloudflare-token',
});

2. Using your Email and your API Key

const cddnss = new CloudflareDDNSSync({
  email: 'your-cloudflare-email',
  key: 'your-cloudflare-key',
});

PreviousChangelogNextgetIp

Last updated 2 years ago

Was this helpful?