AccessTokenRequestSample.ConsoleApplication/Program.cs
/// <summary>
/// Encodes the Client ID and Client Secret as a Base 64 String.
/// </summary>
/// <param name="clientId">Client ID</param>
/// <param name="clientSecret">Client Secret</param>
/// <returns>String</returns>
Encodes the Client ID and Client Secret as a Base 64 String.
Encodes the Client ID and Client Secret as a Base 64 String .
private static string EncodeClientCredentials(string clientId, string clientSecret)
        {
            Encoding encoding = Encoding.UTF8;
            string clientCredentials = String.Format("{0}:{1}", clientId, clientSecret);
            return Convert.ToBase64String(encoding.GetBytes(clientCredentials));
        }
private static string EncodeClientCredentials ( string clientId , string clientSecret ) { Encoding encoding = Encoding . UTF8 ; string clientCredentials = String . Format ( " " , clientId , clientSecret ) ; return Convert . ToBase64String ( encoding . GetBytes ( clientCredentials ) ) ; }
Encodes the Client ID and Client Secret as a Base 64 String.
Encodes the Client ID and Client Secret as a Base 64 String .
None
clientId
string
None
clientSecret
string
None