Added GQL client + helper methods.

This commit is contained in:
Patrick Fic
2020-01-16 23:22:16 -08:00
parent d77e0d1c02
commit 32aec8e4ff
5 changed files with 62 additions and 5 deletions

View 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;
}
}
}