User26648

FileMaker 17 API Failing

Discussion created by User26648 on May 17, 2018
Latest reply on May 18, 2018 by wimdecorte

Can anyone spot a problem with this call.

 

$Method = "POST"

$Header: Quote( "Content-Type: application/json")

$Header2: Quote( "Authorization: Test: B0r0d1n")

$Data = {}

URL: "https://localhost/fmi/data/v1/databases/MSM/sessions"

 

cURL Options:

 

"-H " & $Header &¶&

"-H " & $Header2 & ¶ &

 

 

Case(

$Method = "POST" ; "--data @$Data" ;

$Method = "PUT" ; "--request PUT¶--data @$Data" ;

$Method = "DELETE" ; "--request DELETE" ;

""

)

 

 

Error = Authentication failed.

 

Any help would be appreciated.

Outcomes