瀏覽代碼

Update README.md

Sofiane Beors 9 年之前
父節點
當前提交
168cf842d3
共有 1 個文件被更改,包括 11 次插入12 次删除
  1. 11 12
      README.md

+ 11 - 12
README.md

@@ -127,24 +127,23 @@ Example using it on Android:
 //in your application class
 
 Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
-        .applicationId("myAppId")
-        .clientKey("myClientKey")
-        .server("http://myServerUrl/parse/")   // '/' important after 'parse'
-        .build());
-        
-  ParseObject testObject = new ParseObject("TestObject");
-  testObject.put("foo", "bar");
-  testObject.saveInBackground();
-
+  .applicationId("myAppId")
+  .clientKey("myClientKey")
+  .server("http://myServerUrl/parse/")   // '/' important after 'parse'
+  .build());
+
+ParseObject testObject = new ParseObject("TestObject");
+testObject.put("foo", "bar");
+testObject.saveInBackground();
 ```
 Example using it on iOS (Swift):
 ```swift
 //in your AppDelegate
 
 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 #>"
+  configuration.server = "https://<# Your Heroku server #>/parse/" // '/' important after '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.