Comments (5)
Yes, store it in a cookies file.
define('DATA_DIR', __DIR__ . '/data/');
from php-fut-api.
Thanks!
But this should be working, i'am already logged in on another page.
<?php
require_once('vendor/autoload.php');
define('DATA_DIR', __DIR__ . '/data/');
if($api->login() === true) {
echo('Logged in');
}
I get this error.
Fatal error: Uncaught Error: Call to a member function login() on null in /home4/tonikuipers/public_html/mydomain.com/test.php:6 Stack trace: #0 {main} thrown in /home4/tonikuipers/public_html/mydomain.com/test.php on line 6
from php-fut-api.
$api is nu, make sure to create that variable first.
from php-fut-api.
Thats's right, but when I do that with this code i have to pass my login details and TokenFunction.
$api = new \JKetelaar\fut\api\API(
$creds[ 'username' ], $creds[ 'password' ], $creds[ 'secret' ], $creds[ 'key' ], $creds[ 'platform' ]
);
How to avoid that?
from php-fut-api.
See issue #49
from php-fut-api.
Related Issues (20)
- Write tests for login
- Add documentation/examples
- unexpected '.', expecting ' HOT 16
- Function to relist tradepile? HOT 6
- How to access players sent to the tradepile? HOT 2
- Login HOT 1
- How to use the API?
- List Item function HOT 7
- get TradeID HOT 1
- Search for players HOT 7
- Search for starting price and/or buy price HOT 1
- Use the same instance API on multiple pages. HOT 5
- thxxxxxxxxxxx! JKetelaar ,you are so great HOT 1
- how to buy a player HOT 20
- totp_callback Function HOT 5
- Fatal Error when calling $handler->getTradepile() HOT 2
- FIFA 18 HOT 14
- SBCs HOT 3
- Hi , how to contact you? I want to invite you develop a project about fut api. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-fut-api.