BridgeStack.ApiEndpointBuilder.GetAuthenticationParameters C# (CSharp) Method

GetAuthenticationParameters() private method

Appends the application key and access token to the query string parameters. Both of these parameters are optional to the ApiEndpointBuilder.
private GetAuthenticationParameters ( ) : string
return string
        private string GetAuthenticationParameters()
        {
            if (AppKey.NullOrEmpty())
            {
                return string.Empty; // passing an access token makes the app key a required parameter.
            }
            IList<QueryParam> parameters = new List<QueryParam>();
            parameters.Add(new QueryParam(Shared.AppKeyParameter, AppKey));
            parameters.Add(new QueryParam(Shared.AccessTokenParameter, AccessToken));
            return parameters.Deserialize();
        }