Comments (10)
Same. Library totally broken.
from client.
try this:
require 'vendor/autoload.php';
use DigitalOceanV2\Adapter\GuzzleAdapter;
use DigitalOceanV2\DigitalOceanV2;
// create an adapter with your access token which can be
// generated at https://cloud.digitalocean.com/settings/applications
$adapter = new GuzzleAdapter('');
// create a digital ocean object with the previous adapter
$digitalocean = new DigitalOceanV2($adapter);
//return the droplet api
$droplet = $digitalocean->droplet();
At the moment mine is working, I never managed to get the BuzzAdapter to work.
from client.
@kwartel @taylorotwell which version do you use ? 0.5
should fix it.. https://github.com/toin0u/DigitalOceanV2#entities
@Forge-Media thanks for your snippet.
from client.
@toin0u PR is on its way, just spent a little bit figuring out how this actually happens.
from client.
@ameliaikeda Thanks but when I'm using the 0.5
version, I cannot reproduce it.. Anyway, I'll looking forward to your PR :)
from client.
I'm using the 0.5 version and creating Droplets with Buzz adapter is
broken. I switched to just not even using the SDK and just using plain
Guzzle.
On Sun, Feb 22, 2015 at 4:45 PM, Antoine Corcy [email protected]
wrote:
@ameliaikeda https://github.com/ameliaikeda Thanks but when I'm using
the 0.5 version, I cannot reproduce it.. Anyway, I'll looking forward to
your PR :)—
Reply to this email directly or view it on GitHub
#82 (comment)
.
from client.
@taylorotwell thanks for your feedbacks. I'll look at the Buzz adapter asap.
from client.
Nice. The create
method on the SDK is the only method I ever have issues with so I just use Guzzle for that and the SDK for everything else 😄
from client.
@taylorotwell Thanks for this precision - I update the issue and look at this closer asap.
from client.
I replaced the buzz adapter and it works. :) I tried Guzzle5 before and that didn't work out so well, but this is great! 👍
from client.
Related Issues (20)
- Policy on PHP 8 named argument usage? HOT 1
- Add support for monitoring API HOT 4
- `Entity\Droplet::tags` incorrectly type-hinted as `Tag[]` HOT 2
- Api\Image::getById() accepts only int, should accept int|string HOT 2
- Ubuntu 20.04 composer install fail HOT 1
- Meta.php Entity class, what is it for? HOT 1
- PHP 7.4 requirement HOT 5
- Add support for Project Resources API HOT 2
- dropletClient->getAll return empty array HOT 2
- Project Resources API HOT 1
- "Floating IPs" have been renamed to "Reserved IPs" HOT 3
- Sizes API defaults to 20 per page and getAll doesn't page HOT 2
- Calling update() may result in data loss HOT 2
- Droplet entity missing VPC UUID property HOT 1
- Kubernetes support? HOT 2
- Uptime Checks HOT 2
- package laravel not found HOT 1
- Fetch IP address of Droplet HOT 1
- Does this library capture the HTTP response code and make that available? HOT 2
- Please remove "final" keyword from ExceptionThrower to allow extending this class. HOT 2
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 client.