ParseObject -> Save() get "unauthorized"
fayqiao opened this issue · 2 comments
#Parse Server app_id, master_key and URL all has been setup as below:
----------
ParseClient::initialize($this->app->config("parse.app_id"), null, $this->app->config("parse.master_key"));
ParseClient::setServerURL($this->app->config("parse.host"), 'parse');
$this->health = ParseClient::getServerHealth();`
----------
Checked server health and get 200.
However, when I try to Save Object to the server, get error -> unauthorized
----------
$customObject = new \Parse\ParseObject($class);
//pass value into $customObject
$customObject->save();
----------
Get error -> unauthorized
$customObject->save(true);
Could you try this?
if fails, please let me know about $class.
;)
Thanks Vueking, I added the "use masterkey ture" to make it works already, but thanks anyway.