If so, you may not be able to use the SDK directly, you could use C# to get the token, then use the token to call the REST API – Get Secret.
You could refer to this link for the steps to get the token and call the API, then follow this link to do them in C#.
CLICK HERE to find out more related problems solutions.