Skip to content

Commit 4081d10

Browse files
committed
Updated readme.
1 parent 0332851 commit 4081d10

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RestClient.GetArray<Post>(api + "/posts").Then(response => {
3939
return RestClient.GetArray<User>(api + "/users");
4040
}).Then(response => {
4141
EditorUtility.DisplayDialog ("Success", JsonHelper.ArrayToJson<User>(response, true), "Ok");
42-
}).Catch(err => EditorUtility.DisplayDialog ("Error", err.Message, "Ok"));
42+
}).Catch((RequestException err) => EditorUtility.DisplayDialog ("Error", err.Message, "Ok"));
4343
```
4444

4545
## Features 🎮
@@ -51,7 +51,7 @@ RestClient.GetArray<Post>(api + "/posts").Then(response => {
5151
- Automatic transforms for **JSON Arrays**.
5252
- Supports default **HTTP** Methods **(GET, POST, PUT, DELETE, HEAD, PATCH)**
5353
- Generic **REQUEST** method to create any http request
54-
- Based on **Promises** for a better asynchronous programming. Learn about Promises [here](https://github.com/Real-Serious-Games/C-Sharp-Promise)!
54+
- Based on **Promises** for a better asynchronous programming. Learn about Promises [here](https://github.com/timcassell/ProtoPromise)!
5555
- Utility to work during scene transition
5656
- Handle HTTP exceptions and retry requests easily
5757
- Open Source 🦄
@@ -80,7 +80,7 @@ Do you want to see this beautiful package in action? Download the demo [here](ht
8080
Download and install the **.unitypackage** file of the latest release published [here](https://github.com/proyecto26/RestClient/releases).
8181

8282
### UPM package
83-
Make sure you had installed [C# Promise package](https://openupm.com/packages/com.rsg.promise/) or at least have it in your [openupm scope registry](https://openupm.com/). Then install **RestClient package** using this URL from **Package Manager**: `https://github.com/proyecto26/RestClient.git#upm`
83+
Make sure you had installed [ProtoPromise package](https://openupm.com/packages/com.timcassell.protopromise/) or at least have it in your [openupm scope registry](https://openupm.com/). Then install **RestClient package** using this URL from **Package Manager**: `https://github.com/proyecto26/RestClient.git#upm`
8484

8585
### NuGet package
8686
Other option is download this package from **NuGet** with **Visual Studio** or using the **nuget-cli**, a **[NuGet.config](https://github.com/proyecto26/RestClient/blob/master/demo/NuGet.config)** file is required at the root of your **Unity Project**, for example:
@@ -319,6 +319,7 @@ router.post('/', function(req, res) {
319319
```
320320

321321
## Credits 👍
322+
* **ProtoPromise** [Robust and efficient library for management of asynchronous operations.](https://github.com/timcassell/ProtoPromise)
322323
* **C-Sharp-Promise:** [Promises library for C# for management of asynchronous operations.](https://github.com/Real-Serious-Games/C-Sharp-Promise)
323324
* **MyAPI:** [A template to create awesome APIs easily ⚡️](https://github.com/proyecto26/MyAPI)
324325

0 commit comments

Comments
 (0)