<?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 Re: Timeline overview in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226311#M5207</link>
    <description>&lt;P&gt;&lt;A class="mention" href="https://community.hubspot.com/u/robert_ainslie"&gt;@Robert_Ainslie&lt;/A&gt; that would be amazing, thanks again!&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jun 2018 14:41:39 GMT</pubDate>
    <dc:creator>scotts1</dc:creator>
    <dc:date>2018-06-29T14:41:39Z</dc:date>
    <item>
      <title>Timeline overview</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226307#M5203</link>
      <description>&lt;P&gt;I'm attempting to follow this docs article:&lt;BR /&gt;
&lt;ASIDE class="onebox whitelistedgeneric"&gt;
  &lt;HEADER class="source"&gt;
      &lt;IMG src="https://community.hubspot.com/legacyfs/online/uploads/default/original/1X/46c7134e5c588b9723986216fcb862e4f64d25e8.png" class="site-icon" width="16" height="16" /&gt;
      &lt;A href="https://developers.hubspot.com/docs/methods/timeline/timeline-overview" target="_blank" rel="nofollow noopener"&gt;developers.hubspot.com&lt;/A&gt;
  &lt;/HEADER&gt;
  &lt;ARTICLE class="onebox-body"&gt;
    

&lt;/ARTICLE&gt;&lt;/ASIDE&gt;&lt;/P&gt;&lt;H3&gt;&lt;A href="https://developers.hubspot.com/docs/methods/timeline/timeline-overview" target="_blank" rel="nofollow noopener"&gt;Timeline API Overview&lt;/A&gt;&lt;/H3&gt;

&lt;P&gt;Overview and Walkthrough for the Timeline API&lt;/P&gt;


  
  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;
  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;

&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I followed the pre req and created a dev account and created a new app.&lt;/P&gt;
&lt;P&gt;Got the hapi key, user id, and the app id.&lt;/P&gt;
&lt;P&gt;Attempt to create an event type and it gives me this error:&lt;BR /&gt;
{"status":"error","message":"UserId not provided in request", ...&lt;/P&gt;
&lt;P&gt;I can't figure out where I'm going wrong since I'm just copying and pasting the command from the article&lt;BR /&gt;
curl -X POST -H "Content-Type: application/json" -d '&lt;BR /&gt;
{&lt;BR /&gt;
"name" : "Example event type",&lt;BR /&gt;
"applicationId": xxxxx&lt;BR /&gt;
}' &lt;BR /&gt;
&lt;A href="https://api.hubapi.com/integrations/v1/xxxxx/timeline/event-types?hapikey=xxxxx&amp;amp;userId=xxxx" class="onebox" target="_blank" rel="nofollow noopener"&gt;https://api.hubapi.com/integrations/v1/xxxxx/timeline/event-types?hapikey=xxxxx&amp;amp;userId=xxxx&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 19:33:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226307#M5203</guid>
      <dc:creator>scotts1</dc:creator>
      <dc:date>2018-06-28T19:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Timeline overview</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226308#M5204</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/scotts"&gt;@scotts&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Try wrapping your URL in single quotes, so the command becomes like this:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;curl -X POST -H "Content-Type: application/json" -d '{"name" : "Billing", "applicationId": [app-id]}' 'https://api.hubapi.com/integrations/v1/[app-id]/timeline/event-types?hapikey=[hapi]&amp;amp;userId=[userId]'&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 14:08:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226308#M5204</guid>
      <dc:creator>robertainslie</dc:creator>
      <dc:date>2018-06-29T14:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Timeline overview</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226309#M5205</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hubspot.com/u/robert_ainslie"&gt;@Robert_Ainslie&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Okay that worked, that's frustrating lol&lt;/P&gt;
&lt;P&gt;Any particular reason why I had to wrap it in single quotes?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 14:18:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226309#M5205</guid>
      <dc:creator>scotts1</dc:creator>
      <dc:date>2018-06-29T14:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Timeline overview</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226310#M5206</link>
      <description>&lt;P&gt;Glad that worked!&lt;/P&gt;
&lt;P&gt;I'm not a curl expert, but I think it's because the URL has parameters - if params are present, you have to treat the URL as a string. I'll follow up with the keeper of the docs to see if we can alter the example curl request to avoid future confusion.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 14:38:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226310#M5206</guid>
      <dc:creator>robertainslie</dc:creator>
      <dc:date>2018-06-29T14:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Timeline overview</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226311#M5207</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hubspot.com/u/robert_ainslie"&gt;@Robert_Ainslie&lt;/A&gt; that would be amazing, thanks again!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 14:41:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226311#M5207</guid>
      <dc:creator>scotts1</dc:creator>
      <dc:date>2018-06-29T14:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timeline overview</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226312#M5208</link>
      <description>&lt;P&gt;Found the reason - it depends on the type of console you're using. Bash tries to turn ? and &amp;amp; into commands. So, on some terminals quotes aren't required, but they are in others.&lt;/P&gt;
&lt;P&gt;I had the doc updated still, but, that's the reason.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 14:53:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226312#M5208</guid>
      <dc:creator>robertainslie</dc:creator>
      <dc:date>2018-06-29T14:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Timeline overview</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226313#M5209</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hubspot.com/u/robert_ainslie"&gt;@Robert_Ainslie&lt;/A&gt; Off topic to the original question but in the same timeline API docs.&lt;/P&gt;
&lt;P&gt;The second step "2. Defining Event Properties" both curl commands require the application id to be in the  request data.&lt;/P&gt;
&lt;P&gt;curl -X POST -H "Content-Type: application/json" -d '&lt;BR /&gt;
{&lt;BR /&gt;
"name" : "webinarName",&lt;BR /&gt;
"label" : "Webinar Name",&lt;BR /&gt;
"propertyType": "String"&lt;BR /&gt;
}' &lt;BR /&gt;
'&lt;A href="https://api.hubapi.com/integrations/v1/" rel="nofollow noopener"&gt;https://api.hubapi.com/integrations/v1/&lt;/A&gt;&amp;lt;/timeline/event-types/&amp;lt;&amp;gt;/properties?hapikey=&amp;lt;&amp;gt;&amp;amp;userId=&amp;lt;&amp;gt;'&lt;/P&gt;
&lt;P&gt;Needed to be&lt;/P&gt;
&lt;P&gt;curl -X POST -H "Content-Type: application/json" -d '&lt;BR /&gt;
{&lt;BR /&gt;
"name" : "webinarName",&lt;BR /&gt;
"label" : "Webinar Name",&lt;BR /&gt;
"propertyType": "String",&lt;BR /&gt;
"applicationId": &amp;lt;&amp;gt;&lt;/P&gt;
&lt;P&gt;}' &lt;BR /&gt;
'&lt;A href="https://api.hubapi.com/integrations/v1/" rel="nofollow noopener"&gt;https://api.hubapi.com/integrations/v1/&lt;/A&gt;&amp;lt;/timeline/event-types/&amp;lt;&amp;gt;/properties?hapikey=&amp;lt;&amp;gt;&amp;amp;userId=&amp;lt;&amp;gt;'&lt;/P&gt;
&lt;P&gt;Before it would work correctly&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 19:23:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226313#M5209</guid>
      <dc:creator>scotts1</dc:creator>
      <dc:date>2018-06-29T19:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Timeline overview</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226314#M5210</link>
      <description>&lt;P&gt;Thanks for the heads up and can pass along as well.&lt;/P&gt;
&lt;P&gt;The overview example should definitely include that, but my general recommendation is to view the specific doc for each of these calls, which includes more exhaustive detail. In this case, this one: &lt;A href="https://developers.hubspot.com/docs/methods/timeline/create-event-type" rel="nofollow noopener"&gt;https://developers.hubspot.com/docs/methods/timeline/create-event-type&lt;/A&gt; and this one: &lt;A href="https://developers.hubspot.com/docs/methods/timeline/create-timeline-event-type-property" rel="nofollow noopener"&gt;https://developers.hubspot.com/docs/methods/timeline/create-timeline-event-type-property&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 19:26:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Timeline-overview/m-p/226314#M5210</guid>
      <dc:creator>robertainslie</dc:creator>
      <dc:date>2018-06-29T19:26:52Z</dc:date>
    </item>
  </channel>
</rss>

