Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAbstractDev committed Mar 9, 2016
1 parent b71c015 commit 53c98fb
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ curl -X POST \

Example using it via JavaScript:

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

Example using it on Android:
```
```java
//in your application class

Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
Expand All @@ -136,5 +136,12 @@ Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
testObject.saveInBackground();

```

Example using it on iOS (Swift):
```swift
Parse.initializeWithConfiguration(ParseClientConfiguration(block: { (configuration: ParseMutableClientConfiguration) -> Void in
configuration.server = "https://<# Your Heroku server #>/parse"
configuration.applicationId ="<# Your APP_ID #>"
configuration.clientKey ="<# Your CLIENT_KEY #>"
}))
```
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 comments on commit 53c98fb

Please sign in to comment.