Add post
This example will show you how to programmatically Add Post
Create new application
Create new application
- 1Browse to your site channel (for more info, check Companies & sites)
- 2Go to Applications tabs
- 3Click Add New Application button at the top right corner of the page
- 4Enter name and description
- 5Click the Generate API key button
How to use API keys
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- 1Copy 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);
});