You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Knowledge Advanced rest API

Received Response
10
Views
3
Comments
edited Nov 3, 2016 8:33PM in Integrations and APIs 3 comments

Content

Hi,

I'm trying to use the rest api for Knowledge Advanced to add articles, I'm getting error OK-SESSION0001   VALIDATION I know this mean I need to get the token which I'm not sure how.

Can you please help me with C# or any sample code.

I'm trying to do this using C# in visual studio.

Also need help on how can I get the token for my user.

below you can see my code.

Also when I try the URL I get that same error. 

thank you

Code Snippet

             using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Web;
using ToJSON;
using System.Web.Script.Serialization;


namespace RestAPIKA
{
    class Program
    {
        public static string response { get; private set; }

        static void Main(string[] args)
        {
            
            string url = @"https://mysite-irs.custhelp.com/km/api/latest/content/";
     

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!