Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login #42

Closed
ToniKuipers opened this issue Apr 20, 2017 · 1 comment
Closed

Login #42

ToniKuipers opened this issue Apr 20, 2017 · 1 comment

Comments

@ToniKuipers
Copy link

I got an error with the example login php. The error is on line 188 of API.php. What does the line mean?

public function login($path = DATA_DIR . '/cookies.txt') {

I'am also not understanding this line of the bootstrap.php

define('DATA_DIR', (($dir = drush_server_home()) === null ? __DIR__ : $dir) . '/.fut-bot/data/');

Please help!

@JKetelaar
Copy link
Owner

It's the login method with a cookies file to store the cookies in 🍪.

The line in bootstrap.php defines what DATA_DIR should be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants