https://github.com/tomodomoco/vanilla-authenticator
https://github.com/tomodomoco/vanilla-authenticator
library php
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomodomoco/vanilla-authenticator
- Owner: TomodomoCo
- License: mit
- Created: 2018-09-26T13:33:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-04T12:31:44.000Z (almost 7 years ago)
- Last Synced: 2025-06-01T00:51:28.359Z (about 1 year ago)
- Topics: library, php
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Vanilla Authenticator
PHP library for programmatically authenticating with Vanilla Forums.
## Example
```php
setCredentials('user@domain.com', 'abcd1234');
try {
$response = $auth->authenticate();
} catch (\Exception $e) {
echo 'Your credentials were invalid.';
}
```
After authenticating, use the Guzzle client to fetch additional data as the authenticated user:
```php
getClient();
$response = $client->get('http://my-forum-name.vanillaforums.com/profile.json');
$profile = json_decode((string) $response->getBody(), true);
print_r($profile);
```
## About Tomodomo
Tomodomo is a creative agency for magazine publishers. We use custom design and technology to speed up your editorial workflow, engage your readers, and build sustainable subscription revenue for your business.
Learn more at [tomodomo.co](https://tomodomo.co) or email us: [hello@tomodomo.co](mailto:hello@tomodomo.co)
## License & Conduct
This project is licensed under the terms of the MIT License, included in `LICENSE.md`.
All open source Tomodomo projects follow a strict code of conduct, included in `CODEOFCONDUCT.md`. We ask that all contributors adhere to the standards and guidelines in that document.
Thank you!