🚀
ProticoSDK
  • 👋Welcome to Protico
  • Overview
    • 💡What we do
    • ✨Our Features
  • SDK
    • 🛠️Getting started
    • 📝Web3 Providers
      • Use existing provider
      • Initialize ProticoAuthCore
        • MetaMask
        • WalletConnect
        • Web3Auth
      • Login
      • Full example
    • 🧑Interact with Ceramic
      • Setting up Ceramic
      • 👤Profile
      • 🤝Contacts
    • Use Protico APIs
      • ⚙️Settings
      • 📋Whiteboard
      • 🗒️Announcement
      • ▪️Blocklist
    • 🔑User Keys
      • Encryption / Decryption
    • Considerations
      • Protico API Key
      • Rate Limiting
Powered by GitBook
On this page
  • Get URL Settings
  • Parameters description
  • Get One URL Setting
  • Parameters description
  • Add One URL Setting
  • Parameters description
  • Modify one URL Setting
  • Parameters description
  • Delete one URL Setting
  • Parameters description
  • Get Domain Settings
  • Parameters description
  1. SDK
  2. Use Protico APIs

Settings

Fetch and edit your domain's settings

Get URL Settings

URL Settings determine which paths on your domain have their own whiteboard, and which ones simply use the main whiteboard.

const urlSettings = await proticoAPI.settings.get(domain:string);

Parameters description

Parameter
Description
Type

domain

Current domain

string

Get One URL Setting

You can fetch a single URL setting from the list, by using its ID.

const urlSettings = await proticoAPI.settings.getOne(urlSettingId:string);

Parameters description

Parameter
Description
Type

urlSettingId

ID of the setting to be fetched

string

Add One URL Setting

Add a new setting for your domain, it will create a new whiteboard for the given url.

type UrlSettingItem={url:string};
const urlSettings = await proticoAPI.settings.addOne(domain:string,data:UrlSettingItem);

Parameters description

Parameter
Description
Type

domain

Current domain

string

data.url

URL to have its own whiteboard

string

Modify one URL Setting

You can also modify one of the current settings.

const urlSettings = await proticoAPI.settings.updateOne(urlSettingId:string,data:UrlSettingItem);

Parameters description

Parameter
Description
Type

urlSettingId

ID of the setting to be fetched

string

data.url

URL to have its own whiteboard

string

Delete one URL Setting

To delete one url setting, do the following:

const urlSettings = await proticoAPI.settings.deleteOne(urlSettingId:string);

Parameters description

Parameter
Description
Type

ID of the setting to be fetched

string

Get Domain Settings

To get other domain settings, such as `use_separate_url`:

const otherSettings = await proticoAPI.settings.getDomainSettings(domain:string);

Parameters description

Parameter
Description
Type

domain

Current domain

string

a

PreviousUse Protico APIsNextWhiteboard

Last updated 1 year ago

⚙️
urlSettingId