Authorize
// Authentication done at grpc stub initialization time see:
//
https://docs.clarifai.com/api-guide/api-overview/api-clients#client-installation-instructions
metadata.set("authorization", "Key YOUR_CLARIFAI_API_KEY");metadata = (('authorization', 'Key YOUR_API_KEY'),)
# Yes the word 'Key' appears in addition to the alphanumeric API_KEY// Authentication done at grpc stub initialization time see:
//
https://docs.clarifai.com/api-guide/api-overview/api-clients#client-installation-instructions
V2Grpc.V2BlockingStub stub = V2Grpc.newBlockingStub(ClarifaiChannel.INSTANCE.getGrpcChannel())
.withCallCredentials(new ClarifaiCallCredentials("YOUR_CLARIFAI_API_KEY"));using System.Threading.Tasks;
using Clarifai.API;
namespace YourNamespace
{
public class YourClassName
{
public static async Task Main()
{
var client = new ClarifaiClient("YOUR_API_KEY");
}
}
}Last updated
Was this helpful?