zira logo

Add post



This example will show you how to programmatically Add Post


Create new application

  • 1
    Browse to your site channel (for more info, check Companies & sites)
  • 2
    Go to Applications tabs
  • 3
    Click Add New Application button at the top right corner of the page
  • 4
    Enter name and description
  • 5
    Click the Generate API key button
How to use API keys

API key used to authenticate and authorize API calls. The X-API-Key header will be used to authenticate API requests to zira
  • 1
    Copy the API-Key by clicking the copy icon
Example

// example is written in javascript

axios.post('https://api.zira.us/public/post', {
    title: 'Hello world',
    content: 'This is my message',
    toChannelId: '123'
    })
    .then(function (response) {
    console.log(response);
    })
    .catch(function (error) {
    console.log(error);
    });
                

Related docs