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 issues #4

Closed
elderlabs opened this issue Dec 9, 2017 · 1 comment
Closed

Login issues #4

elderlabs opened this issue Dec 9, 2017 · 1 comment

Comments

@elderlabs
Copy link

Sinusbot version: 0.11.0-8e5f1a2
sinusbot.class.php version: 0.3

The file no longer manages to login to the Sinusbot API. It worked in previous versions of the Sinusbot, but not the current one.

Printing the variable out after passing my login credentials only yields the following:

SinusBot Object ( [wiURL] => https://<REDACTED> [wiToken] => [wiTimeout] => 8000 [apiURL] => https://<REDACTED>/api/v1 [botUUID] => [instanceUUID] => )

I'm still investigating, however, it appears the API is not accepting the string for whatever reason.

<?php
include("sinusbot.class.php");
$sinusbot = new SinusBot("https://<REDACTED>");
$sinusbot->login("bot", "<REDACTED>");
print_r($sinusbot);
$sinusbot->selectInstance("2fe45e42-2e4f-5a81-24b0-32253032e88f");
$token = $sinusbot->getWebStreamToken($inst);
?>
@elderlabs
Copy link
Author

User error. Solved too long ago to remember the fix, other than proxying the connection internally.

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

1 participant