Ad Campaign Data Token Authentication Guide In this video tutorial, let's understand how the ad campaign data token authentication works. Prerequisites This API requires a bearer token. Before using this API, ensure that your admin setting, API authentication, is set to token authentication. You can find this setting on your admin login under the admin section. If the API authentication setting was set to any value other than token authentication, change it to token authentication and save it. Now get back to the API page. Step-by-Step Guide Generate a Token Use the generate token API to generate a token that will be valid for one hour. Add the domain name for the API. If you are an incos user, add the domain in1-incos-api.ozontel.com. The content type should always be application/json. For the API key, access your cloud-agent-admin-settings page. Under the account tab, you will find the API key. Copy the API key and add it to the parameter value. Pass the body parameters. Use the example format provided in the document. Copy the format and add it to the body parameters. Replace the example value for the username with your actual account username value. Click on the try it button and the API will generate a token that is valid for the next one hour. Copy this token and add it to the authentication tab on the add-campaign-data API. Add Parameters for the API The content type should be application/json. The API key parameter is not a mandatory field. The API still works even if you missed passing the API key value here. For the body parameters, use the example format provided in the document. Copy the format provided and paste it into the body parameters field. Replace the example values with the actual values of your account. Ensure you add all the mandatory parameters here. In case you don't want any non-mandatory fields, you can remove them from the body parameters. For example, if your campaign's dial method is agent-wise, the agent ID is a mandatory parameter. Add the agent ID and username as mandatory parameters. Don't forget to add the phone number, which is also a mandatory parameter. Copy the phone number line from the example format and paste it into the body parameters. On the curl request on the right side panel, you can quickly check what parameters you have added. Submit the API Request After all the parameters are added, click on the try it button and the API will give you responses. If it's a successful response, the data you added can be seen for your campaign. If you receive any error message, change your parameters accordingly and try to hit the API again. Thank you.
The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!
If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.