1
API Username and password
Question asked by Glen Harvy - 7/15/2018 at 5:04 PM
Answered
I can't find anywhere where you set a username/password for accessing the API. Am I to assume that any user in the role of Administrator can access the api calls.
 
 

3 Replies

Reply to Thread
0
Eric McCarthy Replied
Employee Post Marked As Answer
The API username and password must be a user's username and password with the role of administrator. This gives you the control of setting what you want the username and password to be. A good practice is to have a dedicated User that is only used for the API calls.
Eric McCarthy Software Developer SmarterTools Inc. www.smartertools.com
0
Glen Harvy Replied
Thank you.
Perhaps you should include this in your documentation somewhere.
0
Glen Harvy Replied
I sitll can't get access to the API. I keep getting:

<?xml version="1.0" encoding="UTF-8"?>
-<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:soap="http://www.w3.org/2003/05/soap-envelope">;
-<soap:Body>
-<GetArticleResponse xmlns="http://www.smartertools.com/Products/SmarterTrack/Services2/svcKB">;
-<GetArticleResult>
<DateCreatedUTC>0001-01-01T00:00:00</DateCreatedUTC>
<DateLastReviewedUTC>0001-01-01T00:00:00</DateLastReviewedUTC>
<DateModifiedUTC>0001-01-01T00:00:00</DateModifiedUTC>
<IsDeleted>false</IsDeleted>
<IsDraft>false</IsDraft>
<IsFlaggedForReview>false</IsFlaggedForReview>
<IsPrivate>false</IsPrivate>
<KBArticleID>0</KBArticleID>
<KBCategoryID>0</KBCategoryID>
<Message>Invalid Permissions</Message>
<Result>false</Result>
<ResultCode>-20</ResultCode>
<Score>0</Score>
<ScoreVotes>0</ScoreVotes>
</GetArticleResult>
</GetArticleResponse>
</soap:Body>
</soap:Envelope>

The soap request is:

@"<soap12:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""; xmlns:xsd=""http://www.w3.org/2001/XMLSchema""; xmlns:soap12=""http://www.w3.org/2003/05/soap-envelope""><soap12:Body><GetArticle xmlns=""http://www.smartertools.com/SmarterTrack/Services2/svcKB""><authUserName>*******</authUserName><authPassword>*********</authPassword><articleId>43</articleId></GetArticle></soap12:Body></soap12:Envelope>";

The articleID is a guess as I don't yet know how to get it?

Reply to Thread