<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Asynchronus calls for search contacts api are not working in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Asynchronus-calls-for-search-contacts-api-are-not-working/m-p/840751#M66859</link>
    <description>&lt;P&gt;Asynchronus calls for search contacts api are not working. I am using asynchronus call, below is the code snippet. After exucuting the ".PostAsync" line process is stopping. Please suggest by seeing the below code snippet is really API support the async??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var client = new RestClient("&lt;A href="https://api.hubapi.com" target="_blank" rel="noopener"&gt;https://api.hubapi.com&lt;/A&gt;");&lt;BR /&gt;var request = new RestRequest("crm/v3/objects/contacts/search", Method.Post);&lt;BR /&gt;request.AddHeader("accept", "application/json");&lt;BR /&gt;request.AddHeader("content-type", "application/json");&lt;BR /&gt;request.AddHeader("authorization", $"Bearer {_token}");&lt;BR /&gt;var body = JsonConvert.SerializeObject(contactSearchRequest);&lt;BR /&gt;request.AddParameter("application/json", body, ParameterType.RequestBody);&lt;BR /&gt;var response = await client.PostAsync(request);&lt;/P&gt;</description>
    <pubDate>Sun, 27 Aug 2023 04:54:48 GMT</pubDate>
    <dc:creator>hpolice</dc:creator>
    <dc:date>2023-08-27T04:54:48Z</dc:date>
    <item>
      <title>Asynchronus calls for search contacts api are not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Asynchronus-calls-for-search-contacts-api-are-not-working/m-p/840751#M66859</link>
      <description>&lt;P&gt;Asynchronus calls for search contacts api are not working. I am using asynchronus call, below is the code snippet. After exucuting the ".PostAsync" line process is stopping. Please suggest by seeing the below code snippet is really API support the async??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var client = new RestClient("&lt;A href="https://api.hubapi.com" target="_blank" rel="noopener"&gt;https://api.hubapi.com&lt;/A&gt;");&lt;BR /&gt;var request = new RestRequest("crm/v3/objects/contacts/search", Method.Post);&lt;BR /&gt;request.AddHeader("accept", "application/json");&lt;BR /&gt;request.AddHeader("content-type", "application/json");&lt;BR /&gt;request.AddHeader("authorization", $"Bearer {_token}");&lt;BR /&gt;var body = JsonConvert.SerializeObject(contactSearchRequest);&lt;BR /&gt;request.AddParameter("application/json", body, ParameterType.RequestBody);&lt;BR /&gt;var response = await client.PostAsync(request);&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 04:54:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Asynchronus-calls-for-search-contacts-api-are-not-working/m-p/840751#M66859</guid>
      <dc:creator>hpolice</dc:creator>
      <dc:date>2023-08-27T04:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronus calls for search contacts api are not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Asynchronus-calls-for-search-contacts-api-are-not-working/m-p/841388#M66919</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/563113"&gt;@hpolice&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; That's a good question. The documentation doesn't call this out as possible, so I do wonder. One question for you — have you tried wrapping&amp;nbsp;&lt;SPAN&gt;your code in a try-catch block to see if any exceptions are being thrown?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks! — Jaycee&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 20:05:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Asynchronus-calls-for-search-contacts-api-are-not-working/m-p/841388#M66919</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-08-28T20:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronus calls for search contacts api are not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Asynchronus-calls-for-search-contacts-api-are-not-working/m-p/841393#M66920</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have added try catch blocks, but no exeption found. It simply stoped my console application after execution of "var response = await client.PostAsync(request)" line;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;A class="" href="https://community.hubspot.com/t5/APIs-Integrations/Asynchronus-calls-for-search-contacts-api-are-not-working/m-p/841388#" target="_blank" rel="noopener"&gt;PREVIEW&lt;/A&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Aug 2023 20:11:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Asynchronus-calls-for-search-contacts-api-are-not-working/m-p/841393#M66920</guid>
      <dc:creator>hpolice</dc:creator>
      <dc:date>2023-08-28T20:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronus calls for search contacts api are not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Asynchronus-calls-for-search-contacts-api-are-not-working/m-p/903173#M70196</link>
      <description>&lt;P&gt;Are you using the nuGet package v110.2.0 for RestSharp for C#?&amp;nbsp; I cannot use request.AddHeader and I&lt;/P&gt;&lt;P&gt;am getting frustraited.&amp;nbsp; Any feedback is appreciated. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 01:43:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Asynchronus-calls-for-search-contacts-api-are-not-working/m-p/903173#M70196</guid>
      <dc:creator>SCohan</dc:creator>
      <dc:date>2024-01-10T01:43:58Z</dc:date>
    </item>
  </channel>
</rss>

