Comments (8)
@teolemon - what exactly is the misuse?
I'm afraid simply adding a user agent won't solve any essential misuse - and - would not help in contacting.
Who do you reach out to on a useragent like e.g. "PHP-SDK - Crawler"?
from openfoodfacts-laravel.
Would't it be better to create personalized (organizational or independent) API keys?
from openfoodfacts-laravel.
@teolemon this package is already doing this:
from openfoodfacts-laravel.
- Do we concatenate a custom part to the Laravel part ?
- Is there a warning if no custom part is added ?
@Dwarfex : for now, just personalized headers.
from openfoodfacts-laravel.
- Do we concatenate a custom part to the Laravel part ?
No. Currently, the user-agent value is populated with the name of the app the developer is using the package within. On default laravel installation this is "Laravel". As a fallback the value is set instead "Laravel Open Food Facts - https://github.com/openfoodfacts/openfoodfacts-laravel". However in practice, that latter shouldn't ever happen since the APP_NAME environment variabele is - as far as I am aware - always available and set in Laravel app's.
- Is there a warning if no custom part is added ?
No, but it won't happen anyhow. See previous answer.
from openfoodfacts-laravel.
what exactly is the misuse?
from openfoodfacts-laravel.
It's not Laravel SDK specific, we're getting many search queries (and other) that don't make any sense for human usage, and it would be cool to have an idea of who is using the API.
from openfoodfacts-laravel.
for the SDK's in general we could maybe introduce some kind of custom headers, like X-OFF-SDK (e.g. having a value of Laravel, Android, Ruby, whatever) along with X-OFF-SDK-VERSION to specify the SDK version no.
from openfoodfacts-laravel.
Related Issues (11)
- Do not cache product not found responses when calling OpenFoodFacts::barcode() HOT 2
- 🎯 What can I work on ? (Laravel SDK) HOT 2
- Assign geographic variable when OpenFoodFacts class is instantiated HOT 2
- Tests are broken HOT 3
- composer fail : laravel 9 compatibility HOT 2
- Add Laravel 10 support to the Open Food Facts package HOT 7
- Installation problem HOT 4
- Add Laravel 11 support to the Open Food Facts package
- Cannot install with laravel 11.7 HOT 4
- Use OpenBeautyFacts
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 openfoodfacts-laravel.