NAV

Organization Name(Last Updated : 01/04/2017)

Organization names are used as the header for mobile messages. You may register and remove organization names through this function.

Methods

PUT /rest/v1/{user_name}/orgname
GET /rest/v1/{user_name}/orgname
GET /rest/v1/{user_name}/orgname/{org_name_id}
POST /rest/v1/{user_name}/orgname/{org_name_id}/default
DELETE /rest/v1/{user_name}/orgname/{org_name_id}

PUT Organization Name

Register an organization name.

We have implemented this safety measure to help prevent fraudulent users from posing as legitimate organizations. When you perform a PUT organization name request, your request will be reviewed by our audit team. If our audit team approves your request, you will be able to use the requested organization name. If not, you will not be able to use the organization name. You will receive the review result via email.

Resource Information

Response Formats JSON
Allowed Methods PUT
URL http://api.trumpia.com/rest/v1/{user_name}/orgname
{user_name} Your account username (this can be found in the Account Settings page after logging in.)

Header Parameters

* required parameters
Parameter Description
Content-Type * application/json
X-Apikey * Your API key (This can be found in the API Settings page after logging in.)

Example value: 123456789abc1011

Body Parameters

* required parameters
Parameter Description
name * The organization name you wish to register. The maximum length for a name is 32 characters.
description * This is a short explanation of why you would like to add the new organization name to your account. A clear explanation will help our audit team expedite the verification process. The maximum length for the description is 500 characters.

Code sample for PUT Organization Name

"Request Example:
PUT http://api.trumpia.com/rest/v1/{user_name}/orgname"
{
  "name" : "Organization Name 01",
  "description" : "Organization Name Description 01"
}

"Response Example (Success):"
{
  "request_id" : "1234561234567asdf123",
  "org_name_id" : 987987987980,
  "status_code" : "MPCE0000"
}

"Response Example (Failure):"
{
  "request_id" : "1234561234567asdf123",
  "status_code" : "MPGE0601"
}


<?
	// PUT Organization Name - Register an organization name.
	include "request_rest.php";

	$request_url = "http://api.trumpia.com/rest/v1/{user_name}/orgname";

	$request_data = array(
		"name" => "Organization",
		"description" => "Example Organization Name"
	);

	$request_rest = new RestRequest();
	$request_rest->setRequestURL($request_url);
	$request_rest->setAPIKey("{api_key}");
	$request_rest->setRequestBody(json_encode($request_data));
	$request_rest->setMethod("PUT");
	$result = $request_rest->execute();

	$response_status = $result[0];
	$json_response_data = $result[1];

	if ($response_status == "200") { //success
		$response_data = json_decode($json_response_data);
		echo "request_id : " . $response_data->request_id;
		echo "org_name_id : " . $response_data->org_name_id . "<br>";
		echo "status_code : " . $response_data->status_code;
	} else {
		echo $response_status ." - connection failure";
	}
?>


// PUT Organization Name - Register an organization name.
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="org.json.simple.JSONObject" %>
<%@ page import="java.io.BufferedReader" %>
<%@ page import="java.io.IOException" %>
<%@ page import="java.io.InputStreamReader" %>
<%@ page import="java.io.OutputStream" %>
<%@ page import="java.io.OutputStreamWriter" %>
<%@ page import="java.io.Writer" %>
<%@ page import="java.net.HttpURLConnection" %>
<%@ page import="java.net.URL" %>
<html>
<title>Organization Name Put Sample Code</title>
<body>

<%
	String username = "username";

	JSONObject OrgNamePut = new JSONObject();
	OrgNamePut.put("name", "Organization");
	OrgNamePut.put("description", "Example Organization Name");

	String urlStr = "http://api.trumpia.com/rest/v1/" + username + "/orgname";
	URL url = new URL(urlStr);
	HttpURLConnection conn = (HttpURLConnection) url.openConnection();
	conn.setRequestMethod("PUT");
	conn.setDoOutput(true);
	conn.setDoInput(true);
	conn.setUseCaches(false);
	conn.setAllowUserInteraction(false);
	conn.setRequestProperty("Content-type", "application/json");
	conn.setRequestProperty("X-Apikey", "12345aaaaa67890aaaaa");
	OutputStream outPutStream = conn.getOutputStream();
	Writer writer = new OutputStreamWriter(outPutStream, "UTF-8");
	writer.write(OrgNamePut.toJSONString());
	writer.close();
	outPutStream.close();

	if (conn.getResponseCode() != 200) {
%>
	Error : <%=conn.getResponseMessage()%>
<%
	}else{
	// Buffer the result into a string
	BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
	StringBuilder sb = new StringBuilder();
	String line;
	while ((line = rd.readLine()) != null) {
		sb.append(line);
	}
	rd.close();
	conn.disconnect();
%>
	Response : <%=sb.toString()%>
<%
	}
%>
</body>
</html>


// PUT Organization Name - Register an organization name.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;

namespace samplecode
{
    class OrgNameInfo
    {
        public string name { get; set; }
		public string description { get; set; }
    }
    class Result
    {
        public string request_id { get; set; }
        public long org_name_id { get; set; }
        public string status_code { get; set; }
    }
    class OrgNamePut
    {
        static void Main()
        {
            RunAsync().Wait();
        }

        static async Task RunAsync()
        {
            using (var client = new HttpClient())
            {
                var apikey = "12345aaaaa67890aaaaa";

                client.DefaultRequestHeaders.Accept.Clear();
                client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                client.DefaultRequestHeaders.Add("X-Apikey", string.Format("{0}", apikey));

                var username = "username";

                var orgname = "Organization";
				var description = "Example Organization Name";

                //PUT
                var info = new OrgNameInfo() { name = orgname };
                Uri putUrl = new Uri(string.Format("http://api.trumpia.com/rest/v1/{0}/orgname", username));
                var response = client.PutAsJsonAsync(putUrl, info).Result;
                if (response.IsSuccessStatusCode)
                {
                    var p = response.Content.ReadAsAsync<Result>().Result;
                    string json = JsonConvert.SerializeObject(p);
                    Console.WriteLine(json);
                }
            }
        }
    }
}

GET Organization Name

Look up the IDs of created organization names, or look up detailed information for a specific organization name.

Resource Information

Response Formats JSON
Allowed Methods GET
URL http://api.trumpia.com/rest/v1/{user_name}/orgname
http://api.trumpia.com/rest/v1/{user_name}/orgname/{org_name_id}
{user_name} Your account username (this can be found in the Account Settings page after logging in.)
{org_name_id} The org_name_id of the organization name information being retrieved.

Header Parameters

* required parameters
Parameter Description
Content-Type * application/json
X-Apikey * Your API key (This can be found in the API Settings page after logging in.)

Example value: 123456789abc1011

Code sample for GET Organization Name

"Response Example (Success):"
[
  {
    "org_name_id" : 987987987980,
    "name" : "Organization Name 01",
    "default" : true
  },
  {
    "org_name_id" : 987987987981,
    "name" : "Organization Name 02",
    "default" : false
  }
]

"Response Example (Failure):"
{
  "request_id" : "1234561234567asdf123",
  "status_code" : "MPGE1203"
}

"Request Example (for a specific organization name):
GET http://api.trumpia.com/rest/v1/{user_name}/orgname/{org_name_id}"

"Response Example (Success):"
{
  "org_name_id" : 987987987980,
  "name" : "Organization Name 01",
  "requested_at" : "2016-03-23T12:34:56Z",
  "status_changed_at" : "2016-03-23T12:34:56Z",
  "default" : true
}

"Response Example (Failure):"
{
  "request_id" : "1234561234567asdf123",
  "status_code" : "MPGE1203"
}


<?
	// GET Organization Name - Retrieve all organization names.
	include "request_rest.php";

	$request_url = "http://api.trumpia.com/rest/v1/{user_name}/orgname";

	$request_rest = new RestRequest();

	$request_rest->setRequestURL($request_url);
	$request_rest->setAPIKey("{api_key}");
	$request_rest->setMethod("GET");
	$result = $request_rest->execute();

	$response_status = $result[0];
	$json_response_data = $result[1];

	if ($response_status == "200") {	//success
		echo $json_response_data;
	} else {
		echo $response_status ." - connection failure";
	}
?>


<?
	// GET Organization Name - Retrieve an organization name by ID.
	include "request_rest.php";

	$request_url = "http://api.trumpia.com/rest/v1/{user_name}/orgname";
	$org_name_id = "987987987980";
	$request_url =	$request_url . "/" . $org_name_id;

	$request_rest = new RestRequest();

	$request_rest->setRequestURL($request_url);
	$request_rest->setAPIKey("{api_key}");
	$request_rest->setMethod("GET");
	$result = $request_rest->execute();

	$response_status = $result[0];
	$json_response_data = $result[1];

	if ($response_status == "200") {	//success
		echo $json_response_data;
	} else {
		echo $response_status ." - connection failure";
	}
?>


// GET Organization Name - Retrieve all organization names.
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.io.BufferedReader" %>
<%@ page import="java.io.IOException" %>
<%@ page import="java.io.InputStreamReader" %>
<%@ page import="java.io.OutputStream" %>
<%@ page import="java.io.OutputStreamWriter" %>
<%@ page import="java.io.Writer" %>
<%@ page import="java.net.HttpURLConnection" %>
<%@ page import="java.net.URL" %>
<html>
<title>Organization Name Get All Sample Code</title>
<body>

<%
	String username = "username";
	String urlStr = "http://api.trumpia.com/rest/v1/" + username + "/orgname";

	URL url = new URL(urlStr);
	HttpURLConnection conn = (HttpURLConnection) url.openConnection();
	conn.setRequestProperty("Content-type", "application/json");
	conn.setRequestProperty("X-Apikey", "12345aaaaa67890aaaaa");

	if (conn.getResponseCode() != 200) {
%>
	Error : <%=conn.getResponseMessage()%>
<%
	}else{
	// Buffer the result into a string
	BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
	StringBuilder sb = new StringBuilder();
	String line;
	while ((line = rd.readLine()) != null) {
		sb.append(line);
	}
	rd.close();
	conn.disconnect();
%>
	Response : <%=sb.toString()%>
<%
	}
%>
</body>
</html>


// GET Organization Name - Retrieve an organization name by ID.
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.io.BufferedReader" %>
<%@ page import="java.io.IOException" %>
<%@ page import="java.io.InputStreamReader" %>

<%@ page import="java.io.OutputStream" %>
<%@ page import="java.io.OutputStreamWriter" %>
<%@ page import="java.io.Writer" %>
<%@ page import="java.net.HttpURLConnection" %>
<%@ page import="java.net.URL" %>
<html>
<title>Organization Name Get By Id Sample Code</title>
<body>

<%
	String username = "username";
	String org_name_id = "987987987980";
	String urlStr = "http://api.trumpia.com/rest/v1/" + username + "/orgname/" + org_name_id;

	URL url = new URL(urlStr);
	HttpURLConnection conn = (HttpURLConnection) url.openConnection();
	conn.setRequestProperty("Content-type", "application/json");
	conn.setRequestProperty("X-Apikey", "12345aaaaa67890aaaaa");

	if (conn.getResponseCode() != 200) {
%>
	Error : <%=conn.getResponseMessage()%>
<%
	}else{
	// Buffer the result into a string
	BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
	StringBuilder sb = new StringBuilder();
	String line;
	while ((line = rd.readLine()) != null) {
		sb.append(line);
	}
	rd.close();
	conn.disconnect();
%>
	Response : <%=sb.toString()%>
<%
	}
%>
</body>
</html>


// GET Organization Name - Retrieve all organization names.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;

namespace sampleCode
{
    class OrgNameInfo
    {
        public long org_name_id { get; set; }
        public string name { get; set; }
        public string status { get; set; }
        public bool default { get; set; }
    }
    class OrgNameGet
    {
        static void Main(string[] args)
        {
            RunAsync().Wait();
        }

        static async Task RunAsync()
        {
            using (var client = new HttpClient())
            {
                var apikey = "12345aaaaa67890aaaaa";

                client.BaseAddress = new Uri("http://api.trumpia.com");
                client.DefaultRequestHeaders.Accept.Clear();
                client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                client.DefaultRequestHeaders.Add("X-Apikey", string.Format("{0}", apikey));

                var username = "username";

                //GET
                HttpResponseMessage response = await client.GetAsync(string.Format("/rest/v1/{0}/orgname",username));
                if (response.IsSuccessStatusCode)
                {
                    List<OrgNameInfo> orgNameInfo = await response.Content.ReadAsAsync<List<OrgNameInfo>>();
                    string json = JsonConvert.SerializeObject(OrgNameInfo);
                    Console.WriteLine(json);
                }
            }
        }
    }
}


// GET Organization Name - Retrieve an organization name by ID.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;

namespace sampleCode
{
    class OrgNameInfo
    {
        public long org_name_id { get; set; }
        public string name { get; set; }
        public string status { get; set; }
		public string requested_at { get; set; }
		public string status_changed_at { get; set; }
        public bool default { get; set; }
    }
    class OrgNameGet
    {
        static void Main(string[] args)
        {
            RunAsync().Wait();
        }

        static async Task RunAsync()
        {
            using (var client = new HttpClient())
            {
                var apikey = "12345aaaaa67890aaaaa";

                client.BaseAddress = new Uri("http://api.trumpia.com");
                client.DefaultRequestHeaders.Accept.Clear();
                client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                client.DefaultRequestHeaders.Add("X-Apikey", string.Format("{0}", apikey));

                var username = "username";
                var org_name_id = "987987987980";

                //GET
                HttpResponseMessage response = await client.GetAsync(string.Format("/rest/v1/{0}/orgname/{1}",username, org_name_id));
                if (response.IsSuccessStatusCode)
                {
                    OrgNameInfo orgNameInfo = await response.Content.ReadAsAsync<OrgNameInfo>();
                    string json = JsonConvert.SerializeObject(orgNameInfo);
                    Console.WriteLine(json);
                }
            }
        }
    }
}

POST Organization Name

Set an existing organization name to be the default.

Resource Information

Response Formats JSON
Allowed Methods POST
URL http://api.trumpia.com/rest/v1/{user_name}/orgname/{org_name_id}/default
{user_name} Your account username (this can be found in the Account Settings page after logging in.)
{org_name_id} The org_name_id you wish to set as default.

Header Parameters

* required parameters
Parameter Description
Content-Type * application/json
X-Apikey * Your API key (This can be found in the API Settings page after logging in.)

Example value: 123456789abc1011

Code sample for POST Organization Name

"Request Example:"
"POST http://api.trumpia.com/rest/v1/{user_name}/orgname/{org_name_id}/default"

"Response Example (Success):"
{
  "request_id" : "1234561234567asdf123",
  "org_name_id" : 987987987980,
  "status_code" : "MPCE0000"
}

"Response Example (Failure):"
{
  "request_id" : "1234561234567asdf123",
  "status_code" : "MPGE1203"
}


<?
	// POST Organization Name - Update an organization name.
	include "request_rest.php";

	$request_url = "http://api.trumpia.com/rest/v1/{user_name}/orgname";
	$org_name_uid = "987987987980";
	$request_url = $request_url. "/". $org_name_uid . "/default";


	$request_rest = new RestRequest();

	$request_rest->setRequestURL($request_url);
	$request_rest->setAPIKey("{api_key}");
	$request_rest->setMethod("POST");
	$result = $request_rest->execute();

	$response_status = $result[0];
	$json_response_data = $result[1];

	if ($response_status == "200") {	//success
		$response_data = json_decode($json_response_data);
		echo "request_id : " . $response_data->request_id;
		echo "org_name_id : " . $response_data->org_name_id . "<br>";
		echo "status_code : " . $response_data->status_code;
	} else {
		echo $response_status ." - connection failure";
	}
?>


// POST Organization Name - Update an organization name.
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.io.BufferedReader" %>
<%@ page import="java.io.IOException" %>
<%@ page import="java.io.InputStreamReader" %>
<%@ page import="java.io.OutputStream" %>
<%@ page import="java.io.OutputStreamWriter" %>
<%@ page import="java.io.Writer" %>
<%@ page import="java.net.HttpURLConnection" %>
<%@ page import="java.net.URL" %>
<html>
<title>Organization Name Post Sample Code</title>
<body>

<%
	String username = "username";
	String org_name_id = "987987987980";

	String urlStr = "http://api.trumpia.com/rest/v1/" + username + "/orgname/" + org_name_id + "/default";
	URL url = new URL(urlStr);
	HttpURLConnection conn = (HttpURLConnection) url.openConnection();
	conn.setRequestMethod("POST");
	conn.setDoInput(true);
	conn.setUseCaches(false);
	conn.setAllowUserInteraction(false);
	conn.setRequestProperty("Content-type", "application/json");
	conn.setRequestProperty("X-Apikey", "12345aaaaa67890aaaaa");

	if (conn.getResponseCode() != 200) {
%>
	Error : <%=conn.getResponseMessage()%>
<%
	}else{
	// Buffer the result into a string
	BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
	StringBuilder sb = new StringBuilder();
	String line;
	while ((line = rd.readLine()) != null) {
		sb.append(line);
	}
	rd.close();
	conn.disconnect();
%>
	Response : <%=sb.toString()%>
<%
	}
%>
</body>
</html>


// POST Organization Name - Update an organization name.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;

namespace samplecode
{
    class Result
    {
        public string request_id { get; set; }
        public long org_name_id { get; set; }
        public string status_code { get; set; }
    }
    class OrgNamePost
    {
        static void Main()
        {
            RunAsync().Wait();
        }

        static async Task RunAsync()
        {
            using (var client = new HttpClient())
            {
                var apikey = "12345aaaaa67890aaaaa";

                client.DefaultRequestHeaders.Accept.Clear();
                client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                client.DefaultRequestHeaders.Add("X-Apikey", string.Format("{0}", apikey));

                var username = "username";
                var org_name_id = "987987987989";

                //POST
                Uri postUrl = new Uri(string.Format("http://api.trumpia.com/rest/v1/{0}/orgname/{1}/default", username, org_name_id));
                var response = client.PostAsync(postUrl, null).Result;
                if (response.IsSuccessStatusCode)
                {
                    var p = response.Content.ReadAsAsync<Result>().Result;
                    string json = JsonConvert.SerializeObject(p);
                    Console.WriteLine(json);
                }
            }
        }
    }
}

DELETE Organization Name

Permanently remove an organization name.

Resource Information

Response Formats JSON
Allowed Methods DELETE
URL http://api.trumpia.com/rest/v1/{user_name}/orgname/{org_name_id}
{user_name} Your account username (this can be found in the Account Settings page after logging in.)
{org_name_id} The org_name_id of the organization name information being deleted.

Header Parameters

* required parameters
Parameter Description
Content-Type * application/json
X-Apikey * Your API key (This can be found in the API Settings page after logging in.)

Example value: 123456789abc1011

Code sample for DELETE Organization Name

"Request Example:
DELETE http://api.trumpia.com/rest/v1/{user_name}/orgname/{org_name_id}"

"Response Example (Success):"
{
  "request_id" : "1234561234567asdf123",
  "org_name_id" : 987987987980,
  "status_code" : "MPCE0000"
}

"Response Example (Failure):"
{
  "request_id" : "1234561234567asdf123",
  "status_code" : "MPGE2301"
}


<?
	// DELETE Organization Name - Delete an organization name.
	include "request_rest.php";

	$request_url = "http://api.trumpia.com/rest/v1/{user_name}/orgname";
	$org_name_id = "987987987980";
	$request_url =	$request_url . "/" . $org_name_id;

	$request_rest = new RestRequest();

	$request_rest->setRequestURL($request_url);
	$request_rest->setAPIKey("{api_key}");
	$request_rest->setMethod("DELETE");
	$result = $request_rest->execute();

	$response_status = $result[0];
	$json_response_data = $result[1];

	if ($response_status == "200") {	//success
		echo $json_response_data;
	} else {
		echo $response_status ." - connection failure";
	}
?>


// DELETE Organization Name - Delete an organization name.
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.io.BufferedReader" %>
<%@ page import="java.io.IOException" %>
<%@ page import="java.io.InputStreamReader" %>
<%@ page import="java.io.OutputStream" %>
<%@ page import="java.io.OutputStreamWriter" %>
<%@ page import="java.io.Writer" %>
<%@ page import="java.net.HttpURLConnection" %>
<%@ page import="java.net.URL" %>
<html>
<title>Organization Name Delete Sample Code</title>
<body>

<%
	String username = "username";
	String org_name_id = "987987987980";
	String urlStr = "http://api.trumpia.com/rest/v1/" + username + "/orgname/" + org_name_id;
	URL url = new URL(urlStr);
	HttpURLConnection conn = (HttpURLConnection) url.openConnection();
	conn.setRequestMethod("DELETE");
	conn.setDoOutput(true);
	conn.setAllowUserInteraction(false);
	conn.setRequestProperty("Content-type", "application/json");
	conn.setRequestProperty("X-Apikey", "12345aaaaa67890aaaaa");
	if (conn.getResponseCode() != 200) {
%>
	Error : <%=conn.getResponseMessage()%>
<%
	}else{
	// Buffer the result into a string
	BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
	StringBuilder sb = new StringBuilder();
	String line;
	while ((line = rd.readLine()) != null) {
		sb.append(line);
	}
	rd.close();
	conn.disconnect();
%>
	Response : <%=sb.toString()%>
<%
	}
%>
</body>
</html>


// DELETE Organization Name - Delete an organization name.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;

namespace samplecode
{
    class Result
    {
        public string request_id { get; set; }
		public long org_name_id { get; set; }
        public string status_code { get; set; }
    }
    class OrgNameDelete
    {
        static void Main()
        {
            RunAsync().Wait();
        }

        static async Task RunAsync()
        {
            using (var client = new HttpClient())
            {
                var apikey = "12345aaaaa67890aaaaa";

                client.DefaultRequestHeaders.Accept.Clear();
                client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                client.DefaultRequestHeaders.Add("X-Apikey", string.Format("{0}", apikey));

                var username = "username";
                var org_name_id = "987987987980";
                //DELETE
                Uri deleteUrl = new Uri(string.Format("http://api.trumpia.com/rest/v1/{0}/orgname/{1}", username, org_name_id));
                var response = client.DeleteAsync(deleteUrl).Result;
                if (response.IsSuccessStatusCode)
                {
                    var p = response.Content.ReadAsAsync<Result>().Result;
                    string json = JsonConvert.SerializeObject(p);
                    Console.WriteLine(json);
                }
            }
        }
    }
}