Added GQL client + helper methods.
This commit is contained in:
19
BodyshopUploader/Utils/GraphQL.cs
Normal file
19
BodyshopUploader/Utils/GraphQL.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using GraphQL.Client;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BodyshopUploader.Utils
|
||||
{
|
||||
public static class GraphQL
|
||||
{
|
||||
public static GraphQLClient CreateGQLClient()
|
||||
{
|
||||
var graphQLClient = new GraphQLClient("https://bodyshop-dev-db.herokuapp.com/v1/graphql");
|
||||
graphQLClient.DefaultRequestHeaders.Add("Authorization", "Bearer " + Utils.Auth.authlink.FirebaseToken);
|
||||
return graphQLClient;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user