lintangtimur / ovoid

Un-Official OVO API Wrapper
MIT License
160 stars 90 forks source link

PHP Recoverable fatal error #23

Closed kingrootid closed 5 years ago

kingrootid commented 5 years ago

C:\xampp\htdocs\ovo>php index.php PHP Recoverable fatal error: Object of class Stelin\Response\WalletTransactionResponse could not be converted to string in C:\xampp\htdocs\ovo\index.php on line 9

<?php require 'vendor/autoload.php'; use Stelin\OVOID; $access_token = ""; $ovoid = new OVOID($access_token); // echo $ovoid->login2FA('')->getRefId(); // echo $ovoid->login2FAVerify('', '', '')->getUpdateAccessToken(); // echo $ovoid->loginSecurityCode('', '')->getAuthorizationToken(); echo $ovoid->getWalletTransaction(1);

Saya dapat error ketika mengambil mutasinya adakah solusi ?

apriady commented 5 years ago

mungkin bisa tulis full code yang digunakan saat terjadi error tersebut disini

nb:jangan tulis informasi yang bersifat rahasia

kingrootid commented 5 years ago

require 'vendor/autoload.php'; use Stelin\OVOID;"; $ovoid = new OVOID($access_token); // echo $ovoid->login2FA('')->getRefId(); // echo $ovoid->login2FAVerify('', '', '')->getUpdateAccessToken(); // echo $ovoid->loginSecurityCode('', '')->getAuthorizationToken(); $page = 1; echo $ovoid->getWalletTransaction($page);

lintangtimur commented 5 years ago

require 'vendor/autoload.php'; use Stelin\OVOID;"; $ovoid = new OVOID($access_token); // echo $ovoid->login2FA('')->getRefId(); // echo $ovoid->login2FAVerify('', '', '')->getUpdateAccessToken(); // echo $ovoid->loginSecurityCode('', '')->getAuthorizationToken(); $page = 1; echo $ovoid->getWalletTransaction($page);

Cek ini: https://github.com/lintangtimur/ovoid/issues/19#issuecomment-511652826

kingrootid commented 5 years ago

C:\xampp\htdocs\ovo>php index.php PHP Notice: Undefined variable: ovo in C:\xampp\htdocs\ovo\index.php on line 9

Notice: Undefined variable: ovo in C:\xampp\htdocs\ovo\index.php on line 9 PHP Fatal error: Uncaught Error: Call to a member function getWalletTransaction() on null in C:\xampp\htdocs\ovo\index.php:9 Stack trace:

0 {main}

thrown in C:\xampp\htdocs\ovo\index.php on line 9

Fatal error: Uncaught Error: Call to a member function getWalletTransaction() on null in C:\xampp\htdocs\ovo\index.php:9 Stack trace:

0 {main}

thrown in C:\xampp\htdocs\ovo\index.php on line 9

lintangtimur commented 5 years ago

sesuaikan variable nya, di contoh comment kan itu pake variable $ovo, di code anda variablenya $ovoid

kingrootid commented 5 years ago

kalau untuk akses via url bagaimana ya ? ini untuk php command jalannya

lintangtimur commented 5 years ago

kalau untuk akses via url bagaimana ya ? ini untuk php command jalannya

maksutnya? dijalankan lewat web?

kingrootid commented 5 years ago

iya dijalankan lewat web gitu

lintangtimur commented 5 years ago

iya dijalankan lewat web gitu

kalo lewat web berarti buat API routing sendiri aja