AccessTokenRequestSample.ConsoleApplication/Program.cs
/// <summary>
/// Form URL Encodes the grant_type and scope.
/// </summary>
/// <param name="scope">Scope</param>
/// <returns>FormUrlEncodedContent</returns>
Form URL Encodes the grant_type and scope.
Form URL Encodes the grant_type and scope .
private static FormUrlEncodedContent EncodeFormContent(string scope)
        {
            Dictionary<string, string> content = new Dictionary<string, string> {
                { "grant_type", "client_credentials" },
                { "scope", scope }
            };
            return new FormUrlEncodedContent(content);
        }
private static FormUrlEncodedContent EncodeFormContent ( string scope ) { Dictionary < string , string > content = new Dictionary < string , string > { { " " , " " } , { " " , scope } } ; return new FormUrlEncodedContent ( content ) ; }
Form URL Encodes the grant_type and scope.
Form URL Encodes the grant_type and scope .
None
scope
string
None