Comments (2)
Thanks. I will look into it.
from screeenlyclient.
I see your issue.
The thing is, I never used Lumen and so the API is new to me.
As Lumen doesn't have the concept of a "config-folder", which is the only benefit when registering our service provider, I would suggest using the package like this:
$app->get('/', function() use ($app) {
$key = 'YOUR_TOP_SECRET_API_KEY'; // or env('SCREEENLY_KEY');
$path = __DIR__ . "/../../public/";
$screenshot = new Wnx\ScreeenlyClient\Screenshot($key);
$screenshot->capture('http://google.com');
$localPath = $screenshot->store($path, 'screenshot.jpg');
});
Hope this helps.
from screeenlyclient.
Related Issues (15)
- Support for Laravel 5 HOT 4
- Javascript on webpages HOT 1
- For some unknown reason this doesn't work with one site atleast? HOT 1
- width and height HOT 5
- Request: Change the apiUrl HOT 2
- Bad Request with v1 HOT 2
- Guzzle 6? HOT 6
- InvalidArgumentException in Client.php HOT 5
- ClientException in Middleware.php HOT 3
- Improvements aka v2.1
- [InvalidArgumentException] Could not find package wnx/screeenly-client~2.0 at any version for your m inimum-stability (stable). Check the package spelling or your minimum-sta bility HOT 4
- Image is not being stored on local disk HOT 3
- Taking a screenshot within a Queued Job do not work HOT 3
- ClientException in Middleware.php line 69: Client error: 429 HOT 1
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 screeenlyclient.