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
45
45
``` php
46
46
ParseClient::initialize( $app_id, $rest_key, $master_key );
47
47
// 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');
49
49
```
50
50
51
51
If your server does not use or require a REST key you may initialize the ParseClient as follows, safely omitting the REST key:
52
52
53
53
``` php
54
54
ParseClient::initialize( $app_id, null, $master_key );
55
55
// 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');
57
57
```
58
58
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
+
59
66
Usage
60
67
-----
61
68
You can’t perform that action at this time.
0 commit comments