From 05dea025c8229303854f5bc5f34e999121fdc98c Mon Sep 17 00:00:00 2001 From: popiazaza Date: Tue, 12 Jun 2018 23:09:37 +0700 Subject: [PATCH] add new tip --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 74f196b..a4e3016 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ $wallet->login(username,password); ``` See all functions down below, full example can be found in [example.php](https://github.com/popiazaza/truewallet-api-wrapper/blob/master/example.php) +Tip: If you like to code with arrays ( $array['item'] ) instead of objects ( $object->item ), you can edit [TrueWallet.php](https://github.com/popiazaza/truewallet-api-wrapper/blob/master/manager/TrueWallet.php) and change from **json_decode($variable_name);** to **json_decode($variable_name,true);** + ## Functions ### [function login(username,password)](https://github.com/popiazaza/truewallet-api-wrapper/blob/a18f800230301d229458a5937bb3fcd44629ed39/manager/TrueWallet.php#L14-L19)