|
@@ -107,7 +107,7 @@ curl -X POST \
|
|
|
|
|
|
Example using it via JavaScript:
|
|
Example using it via JavaScript:
|
|
|
|
|
|
-```
|
|
|
|
|
|
+```javascript
|
|
Parse.initialize('myAppId','unused');
|
|
Parse.initialize('myAppId','unused');
|
|
Parse.serverURL = 'https://whatever.herokuapp.com';
|
|
Parse.serverURL = 'https://whatever.herokuapp.com';
|
|
var obj = new Parse.Object('GameScore');
|
|
var obj = new Parse.Object('GameScore');
|
|
@@ -122,7 +122,7 @@ obj.save().then(function(obj) {
|
|
```
|
|
```
|
|
|
|
|
|
Example using it on Android:
|
|
Example using it on Android:
|
|
-```
|
|
|
|
|
|
+```java
|
|
//in your application class
|
|
//in your application class
|
|
|
|
|
|
Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
|
|
Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
|
|
@@ -136,5 +136,12 @@ Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
|
|
testObject.saveInBackground();
|
|
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.
|
|
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.
|