File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,24 @@ After including the required files from the SDK, you need to initalize the Parse
4545``` php
4646ParseClient::initialize( $app_id, $rest_key, $master_key );
4747// Users of Parse Server will need to point ParseClient at their remote URL and Mount Point:
48- ParseClient::setServerURL('https://my-parse-server.com','parse');
48+ ParseClient::setServerURL('https://my-parse-server.com:port ','parse');
4949```
5050
5151If your server does not use or require a REST key you may initialize the ParseClient as follows, safely omitting the REST key:
5252
5353``` php
5454ParseClient::initialize( $app_id, null, $master_key );
5555// Users of Parse Server will need to point ParseClient at their remote URL and Mount Point:
56- ParseClient::setServerURL('https://my-parse-server.com','parse');
56+ ParseClient::setServerURL('https://my-parse-server.com:port ','parse');
5757```
5858
59+ Notice
60+ Parse server's default port is ` 1337 ` and the second parameter ` parse ` is the route prefix of your parse server.
61+
62+ For example if your parse server's url is ` http://example.com:1337/parse ` then you can set the server url using the following snippet
63+
64+ ` ParseClient::setServerURL('https://example.com:1337','parse'); `
65+
5966Usage
6067-----
6168
You can’t perform that action at this time.
0 commit comments