Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5028

Wanting to GET some data without authorization token. Code 401

$
0
0

Thanks for the reply. Firstly I did not know X-DreamFactory-Application-Name was deprecated. I am using X-DreamFactory-API-Key.

My header (written in PHP for curl) looks like this and works for getting tables when there is a token.

$headr = array();
$headr[] = 'Content-type: application/json';
$headr[] = 'Accept: application/json';
$headr[] = 'DreamFactory-Application-Name: MobileHeroDB';
$headr[] = 'X-DreamFactory-Session-Token :'. $sessiontoken;
$headr[] = 'X-DreamFactory-Api-Key : d18fxxxxxxxxxd1ffce16df013a3a35b0462xxxxxxxxxxxxxxx'4;

This works but needs a session token. How to access a table without a session token is the issue I face.

PS I will remove Application-Name, thanks for the tip.


Viewing all articles
Browse latest Browse all 5028