<?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: Vonage API connection in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Vonage-API-connection/m-p/3772583#M50633</link>
    <description>&lt;P&gt;It's always the small things... Thank you so much!!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 20:36:29 GMT</pubDate>
    <dc:creator>jessimica1018</dc:creator>
    <dc:date>2024-03-18T20:36:29Z</dc:date>
    <item>
      <title>Vonage API connection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Vonage-API-connection/m-p/3767165#M50524</link>
      <description>&lt;P&gt;Hey all!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have met my match, I am not the greatest at API's and this is beyond my knowledge so I am hoping to get a bit of assistance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am setting up a dataflow in a workspace that is connected to an Azure Data Lake. When I have Power Query open, I can see the data and in postman it connects just fine but when I setup a refresh I get the following error:&lt;BR /&gt;"Error: Credentials not found for data source '&amp;lt;ccon&amp;gt;{"Kind":"Web" "Path":"&lt;A href="https://api.vonage.com/t/vbc.prod/reports/v1" target="_blank" rel="noopener"&gt;https://api.vonage.com/t/vbc.prod/reports/v1&lt;/A&gt;" "NormalizedPath":"&lt;A href="https://api.vonage.com/t/vbc.prod/reports/v1" target="_blank" rel="noopener"&gt;https://api.vonage.com/t/vbc.prod/reports/v1&lt;/A&gt;" "IsDefaultForKind":false}&amp;lt;/ccon&amp;gt;'.. Param1 = &amp;lt;ccon&amp;gt;{"Kind":"Web" "Path":"&lt;A href="https://api.vonage.com/t/vbc.prod/reports/v1" target="_blank" rel="noopener"&gt;https://api.vonage.com/t/vbc.prod/reports/v1&lt;/A&gt;" "NormalizedPath":"&lt;A href="https://api.vonage.com/t/vbc.prod/reports/v1" target="_blank" rel="noopener"&gt;https://api.vonage.com/t/vbc.prod/reports/v1&lt;/A&gt;" "IsDefaultForKind":false}&amp;lt;/ccon&amp;gt; Request ID: a1563c1b-2c95-44c5-a5e9-73570c4046b9."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Power Query:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;maxPage = 500,&lt;/P&gt;&lt;P&gt;Pagination = (page) =&amp;gt;&lt;BR /&gt;let&lt;BR /&gt;Source = Web.Contents(&lt;BR /&gt;"&lt;A href="https://api.vonage.com/t/vbc.prod/reports/v1" target="_blank" rel="noopener"&gt;https://api.vonage.com/t/vbc.prod/reports/v1&lt;/A&gt;",&lt;BR /&gt;[&lt;BR /&gt;Headers = [&lt;BR /&gt;Authorization = "Bearer &amp;lt;token&amp;gt;"&lt;BR /&gt;],&lt;BR /&gt;RelativePath = "/accounts/&amp;lt;account ID&amp;gt;/call-logs" &amp;amp; "?start:gte=" &amp;amp; Text.From(Start) &amp;amp; "&amp;amp;start:lte=" &amp;amp; Text.From(End) &amp;amp; "&amp;amp;page_size=10000&amp;amp;order=asc&amp;amp;page=" &amp;amp; Text.From(page)&lt;BR /&gt;]&lt;BR /&gt;),&lt;BR /&gt;doc = Json.Document(Source),&lt;BR /&gt;results = try doc otherwise null&lt;BR /&gt;in&lt;BR /&gt;results,&lt;/P&gt;&lt;P&gt;AllData = List.Generate(&lt;BR /&gt;() =&amp;gt; [i = 1, response = Pagination(i)],&lt;BR /&gt;each [i] &amp;lt;= maxPage and ([response][_embedded][call_logs] &amp;lt;&amp;gt; null and not List.IsEmpty([response][_embedded][call_logs])),&lt;BR /&gt;each [i = [i] + 1, response = Function.InvokeAfter(() =&amp;gt; Pagination(i), #duration(0, 0, 0, 0))]&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;#"Converted to Table" = Table.FromList(AllData, Splitter.SplitByNothing(), null, null, ExtraValues.Error),&lt;BR /&gt;#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"i", "response"}, {"i", "response"}),&lt;BR /&gt;#"Expanded response" = Table.ExpandRecordColumn(#"Expanded Column1", "response", {"page_size", "page", "total_items", "total_page", "_embedded", "_links"}, {"page_size", "page", "total_items", "total_page", "_embedded", "_links"}),&lt;BR /&gt;#"Removed columns" = Table.RemoveColumns(#"Expanded response", {"i", "_links", "total_page", "total_items", "page", "page_size"}),&lt;BR /&gt;#"Expanded _embedded" = Table.ExpandRecordColumn(#"Removed columns", "_embedded", {"call_logs"}, {"call_logs"}),&lt;BR /&gt;#"Expanded call_logs" = Table.ExpandListColumn(#"Expanded _embedded", "call_logs"),&lt;BR /&gt;#"Expanded call_logs 1" = Table.ExpandRecordColumn(#"Expanded call_logs", "call_logs", {"id", "in_network", "international", "from", "to", "direction", "length", "start", "end", "charge", "rate", "destination_device_name", "source_device_name", "destination_user_full_name", "destination_user", "destination_sip_id", "destination_extension", "source_user_full_name", "source_user", "custom_tag", "source_sip_id", "source_extension", "result", "recorded"}, {"id", "in_network", "international", "from", "to", "direction", "length", "start", "end", "charge", "rate", "destination_device_name", "source_device_name", "destination_user_full_name", "destination_user", "destination_sip_id", "destination_extension", "source_user_full_name", "source_user", "custom_tag", "source_sip_id", "source_extension", "result", "recorded"}),&lt;BR /&gt;#"Changed column type" = Table.TransformColumnTypes(#"Expanded call_logs 1", {{"id", type text}, {"in_network", type text}, {"international", type text}, {"from", type text}, {"to", type text}, {"direction", type text}, {"length", type text}, {"start", type text}, {"end", type text}, {"charge", type text}, {"rate", type text}, {"destination_device_name", type text}, {"source_device_name", type text}, {"destination_user_full_name", type text}, {"destination_user", type text}, {"destination_sip_id", type text}, {"destination_extension", type text}, {"source_user_full_name", type text}, {"source_user", type text}, {"custom_tag", type text}, {"source_sip_id", type text}, {"source_extension", type text}, {"result", type text}, {"recorded", type text}}),&lt;BR /&gt;#"Replaced errors" = Table.ReplaceErrorValues(#"Changed column type", {{"id", null}, {"in_network", null}, {"international", null}, {"from", null}, {"to", null}, {"direction", null}, {"length", null}, {"start", null}, {"end", null}, {"charge", null}, {"rate", null}, {"destination_device_name", null}, {"source_device_name", null}, {"destination_user_full_name", null}, {"destination_user", null}, {"destination_sip_id", null}, {"destination_extension", null}, {"source_user_full_name", null}, {"source_user", null}, {"custom_tag", null}, {"source_sip_id", null}, {"source_extension", null}, {"result", null}, {"recorded", null}})&lt;BR /&gt;in&lt;BR /&gt;#"Replaced errors"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also think I need to setup a token refresh, I don't think that is necessarily the issue but just another piece I am not 100% sure on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 16:17:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Vonage-API-connection/m-p/3767165#M50524</guid>
      <dc:creator>jessimica1018</dc:creator>
      <dc:date>2024-03-15T16:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Vonage API connection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Vonage-API-connection/m-p/3767634#M50529</link>
      <description>&lt;P&gt;lose the leading /&amp;nbsp; on the RelativePath and put the Query attributes into their own place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1" target="_blank"&gt;Web.Contents - PowerQuery M | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 21:28:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Vonage-API-connection/m-p/3767634#M50529</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-15T21:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Vonage API connection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Vonage-API-connection/m-p/3772583#M50633</link>
      <description>&lt;P&gt;It's always the small things... Thank you so much!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 20:36:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Vonage-API-connection/m-p/3772583#M50633</guid>
      <dc:creator>jessimica1018</dc:creator>
      <dc:date>2024-03-18T20:36:29Z</dc:date>
    </item>
  </channel>
</rss>

