Closed kingrootid closed 5 years ago
mungkin bisa tulis full code yang digunakan saat terjadi error tersebut disini
nb:jangan tulis informasi yang bersifat rahasia
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);
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
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:
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:
thrown in C:\xampp\htdocs\ovo\index.php on line 9
sesuaikan variable nya, di contoh comment kan itu pake variable $ovo
, di code anda variablenya $ovoid
kalau untuk akses via url bagaimana ya ? ini untuk php command jalannya
kalau untuk akses via url bagaimana ya ? ini untuk php command jalannya
maksutnya? dijalankan lewat web?
iya dijalankan lewat web gitu
iya dijalankan lewat web gitu
kalo lewat web berarti buat API routing sendiri aja
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 ?