Forum Discussion

doman2508's avatar
doman2508
New Member
3 years ago

Api Connection with methods and token

Hi All,

I'm newby with power BI

 

I want to connect to web serwice with token autenthication and method

Connection is to https://api.baselinker.com/index.php

I preapared code like this, but soesnt work. Error "Connent is not the right option for this function.

can you advise?

 

 

 

let
url = "https://api.baselinker.com/connector.php",

body = "{""Method"":""getOrders""}",

header =[#"X-BLToken"= "################################",#"Content-Type"= "application/json"],


response = Web.Headers(url,[Content=Json.FromValue(body),Headers=header]),
Source = Json.Document(response,1252)


in

Source

 

 

2 Replies