1 Reply Latest reply on Aug 22, 2016 5:49 AM by Patrick Abernathy

    C# API header, how to add into HTTPCLIENT methond PUT

    Shaw Qian

      I am new to both API and C#. What should I do to add header information into PUT method?

                  _client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("X-Tableau-Auth:" + tokennum));

      This code always shows error to me.