async static Task Main(string[] args)
        {
            IndicoConfig config = new IndicoConfig(
                host: "app.indico.io"
                );

            IndicoClient client = new IndicoClient(config);

            string query = @"
              query GetDatasets {
                datasets {
                  id
                  name
                  status
                  rowCount
                  numModelGroups
                  modelGroups {
                    id
                  }
                }
              }
            ";

            GraphQLRequest request  = client.GraphQLRequest(query, "GetDatasets");
            JObject        response = await request.Call();

            Console.WriteLine(response);
        }
Beispiel #2
0
        public List <Dataset> ListDatasets()
        {
            string query = @"
              query GetDatasets {
                datasets {
                  id
                  name
                  status
                  rowCount
                  numModelGroups
                  modelGroups {
                    id
                  }
                }
              }
            ";

            try
            {
                GraphQLRequest request  = Client.GraphQLRequest(query, "GetDatasets");
                JObject        response = request.Call();
                return(response.ToObject <List <Dataset> >());
            } catch (AggregateException sae)
            {
                Console.WriteLine("Call failed " + sae.ToString());
                throw new IndicoActivityException();
            }
        }
Beispiel #3
0
        static void getDatasets(IndicoClient client)
        {
            string query = @"
                query GetDatasets {
                    datasets {
                        id
                        name
                        status
                        rowCount
                        numModelGroups
                        modelGroups {
                            id
                        }
                    }
                  }
                ";

            GraphQLRequest request  = client.GraphQLRequest(query, "GetDatasets");
            JObject        response = request.Call();

            Console.WriteLine(response);
        }