I have to set the Authorization header and the body part of a RestRequest in Delphi.
My body part looks like this, it is a JSON:
{
"Data": {
"Permissions": [
"ReadAccountsDetail",
"ReadBalances",
"ReadStatementsDetail",
"ReadTransactionsDetail",
"ReadTransactionsCredits",
"ReadTransactionsDebits"
],
"ExpirationDateTime": "2030-08-27T18:08:14.922Z",
"TransactionFromDateTime": "2012-08-27T18:08:14.922Z",
"TransactionToDateTime": "2022-08-27T18:08:14.922Z"
},
"Risk": {}
}
It works fine in SoapUI, I tested it. Now I want to make a program in Delphi. How can I add this to the body part of the RestRequest, and how can I add the Authentication header to the request?
My token for Authentication is a bit long, and the compiler does not accept it as a literal, is there a workaround for that?