Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mentos1386's avatar

First time trying to use API and OAuth @DigitalOcean

I am trying to make application that will use Digital ocean api to create/monitor/modify droplets/vps. I have never done anything like this, but i have general idea of how api's work (experimented with Reddit's api to show subreddits/comments).

But i don't know how authentication works, do user have to authenticate only once, and then i save some kind of a key in database to use it later? I was hoping to make it in a way user will authenticate it first time he logins on site, and then wont have to never again.

How should i start this, what to use.. ? I was thinking of using this. Any hints and tips are welcome :)

0 likes
2 replies
graham's avatar

Did you manage to get that working mentos1386, I'm having problems using it with Laravel 5.

I've installed the package as per the instructions but I'm getting an error on this part:

php artisan publish:config graham-campbell/digitalocean

exception 'InvalidArgumentException' with message 'There are no commands defined in the "publish" namespace.' in /home/vagrant/code/l5try/vendor/symfony/console/Symfony/Component/Console/Application.php:501

Please or to participate in this conversation.