We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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

StatusCode: Unauthorized

Received Response
10
Views
7
Comments
edited Aug 1, 2018 1:35PM in Integrations and APIs 7 comments

Content

Hi! I'm getting a problems with the connection between my code and REST API.
Was added in the header my authentication (Basic authentication) and header ("OSvC-CREST-Application-Context"), but a error appear.

**I'm using v1.3**

In attachment a error.

Code Snippet

             using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.IO;
using Newtonsoft.Json;

namespace ConsultAPI {
    class Program {
        static void Main(string[] args) {

            var client = new HttpClient();

            Console.Write("Contact Id: ");
            string id = Console.ReadLine();
            

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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