Skip to main content
User avatar

Do I need an app-id to do any API interfacing?

I am hoping to create a script that gets content from other company systems and updates dozuki with the content but am running into verification issues because I do not have an app-id. In order to do any API interfacing must I first acquire an app-id?

Answered! View the answer I have this problem too

Is this a good question?

Score 2
Add a comment

1 Answer

Chosen Solution
User avatar

I've since discovered the answer to be No. The authToken will work for validation for most API tasks. Here is a sample for implementing this in java-script as a test.

  • Log into your dozuki site.
  • Go to (your-url).dozuki.com/api/2.0/user?pretty
  • copy the authToken

Block Image

  • use it in the following javascript code
var userToken = 'Paste authToken Here';
var url = 'your_url';

function checkToken(){
    userToken = document.getElementById('token').value;

    var xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function() {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            document.getElementById('demo').innerHTML = "Token Approved!"
        }
        else{
            document.getElementById('demo').innerHTML = "Token Denied"
        }
    }
    xmlhttp.open("GET",url+"/api/2.0/user", true);
    xmlhttp.setRequestHeader('Authorization','api '+userToken);
    xmlhttp.send();
}

Was this answer helpful?

Score 3
Add a comment

Add your answer

Author avatar Forrest will be eternally grateful.
TRUSTe