Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Connect to restful api data source multiple times

Hi,   I am a complete Newbie with regards to Resftul services etc, I am trying to connect to a Second Street Api using the below.   It seems you need to use a Post first to get an access toke, ho...
  • Anonymous's avatar
    Anonymous
    9 years ago

    FYI we got it connecting using

     

    let
         apiUrl = "https://api.secondstreetapp.com/sessions",
         data ="{'sessions':[{'username':'**', 'password': '**'}]}",
         options = [
         Headers =[#"Content-Type"="application/json", #"X-Api-Key"="*****"],
         Content = Text.ToBinary(data)
         ],
         Value = Web.Contents(apiUrl,options),
    
    in
         Value