Skip to content

Commit 53c98fb

Browse files
Update README.md
1 parent b71c015 commit 53c98fb

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ curl -X POST \
107107

108108
Example using it via JavaScript:
109109

110-
```
110+
```javascript
111111
Parse.initialize('myAppId','unused');
112112
Parse.serverURL = 'https://whatever.herokuapp.com';
113113
var obj = new Parse.Object('GameScore');
@@ -122,7 +122,7 @@ obj.save().then(function(obj) {
122122
```
123123

124124
Example using it on Android:
125-
```
125+
```java
126126
//in your application class
127127

128128
Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
@@ -136,5 +136,12 @@ Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
136136
testObject.saveInBackground();
137137

138138
```
139-
139+
Example using it on iOS (Swift):
140+
```swift
141+
Parse.initializeWithConfiguration(ParseClientConfiguration(block: { (configuration: ParseMutableClientConfiguration) -> Void in
142+
configuration.server = "https://<# Your Heroku server #>/parse"
143+
configuration.applicationId ="<# Your APP_ID #>"
144+
configuration.clientKey ="<# Your CLIENT_KEY #>"
145+
}))
146+
```
140147
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)