Skip to content

Commit 168cf84

Browse files
Update README.md
1 parent 75dbba9 commit 168cf84

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127,24 +127,23 @@ Example using it on Android:
127127
//in your application class
128128

129129
Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
130-
.applicationId("myAppId")
131-
.clientKey("myClientKey")
132-
.server("http://myServerUrl/parse/") // '/' important after 'parse'
133-
.build());
134-
135-
ParseObject testObject = new ParseObject("TestObject");
136-
testObject.put("foo", "bar");
137-
testObject.saveInBackground();
138-
130+
.applicationId("myAppId")
131+
.clientKey("myClientKey")
132+
.server("http://myServerUrl/parse/") // '/' important after 'parse'
133+
.build());
134+
135+
ParseObject testObject = new ParseObject("TestObject");
136+
testObject.put("foo", "bar");
137+
testObject.saveInBackground();
139138
```
140139
Example using it on iOS (Swift):
141140
```swift
142141
//in your AppDelegate
143142

144143
Parse.initializeWithConfiguration(ParseClientConfiguration(block: { (configuration: ParseMutableClientConfiguration) -> Void in
145-
configuration.server = "https://<# Your Heroku server #>/parse"
146-
configuration.applicationId = "<# Your APP_ID #>"
147-
configuration.clientKey = "<# Your CLIENT_KEY #>"
144+
configuration.server = "https://<# Your Heroku server #>/parse/" // '/' important after 'parse'
145+
configuration.applicationId = "<# Your APP_ID #>"
146+
configuration.clientKey = "<# Your CLIENT_KEY #>"
148147
}))
149148
```
150149
You can change the server URL in all of the open-source SDKs, but we're releasing new builds which provide initialization time configuration of this property.

0 commit comments

Comments
 (0)