Giter Club home page Giter Club logo

fingerprint-pro-server-api-php-sdk's Issues

Update to newer Guzzle

Hi team,

Is there any chance you can upgrade the library to support Laravel 9, as I get the following error when installing:

charlie@Charlies-MacBook-Pro test-project % composer require fingerprint/fingerprint-pro-server-api-sdk         
./composer.json has been updated
Running composer update fingerprint/fingerprint-pro-server-api-sdk
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - fingerprint/fingerprint-pro-server-api-sdk[dev-feat/swagger-update-schemas-seen-at, dev-main, dev-develop, 0.0.1, ..., 0.4.1, 1.0.0, ..., 1.0.1] require guzzlehttp/guzzle ^6.2 -> found guzzlehttp/guzzle[6.2.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.2).
    - Root composer.json requires fingerprint/fingerprint-pro-server-api-sdk * -> satisfiable by fingerprint/fingerprint-pro-server-api-sdk[dev-feat/swagger-update-schemas-seen-at, dev-main, dev-develop, 0.0.1, 0.3.0, 0.4.0, 0.4.1, 1.0.0, 1.0.1, 9999999-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require fingerprint/fingerprint-pro-server-api-sdk:*" to figure out if any version is installable, or "composer require fingerprint/fingerprint-pro-server-api-sdk:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
charlie@Charlies-MacBook-Pro test-project % 

Get rid of ArrayAccess methods warnings

Running run_checks.php you get a lot of these warnings:

Deprecated: Return type of Fingerprint\ServerAPI\Model\SignalResponseTor::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/jurajuhlar/Documents/Code/php-server-sdk/src/Model/SignalResponseTor.php on line 271
PHP Deprecated:  Return type of Fingerprint\ServerAPI\Model\SignalResponseTor::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/jurajuhlar/Documents/Code/php-server-sdk/src/Model/SignalResponseTor.php on line 284

They might be suppressed now at the script level but they are there. We might be able to get rid of them as the message suggest by adjusting our generation templates, here is the related generator issue:

swagger-api/swagger-codegen#11820

Exception when calling FingerprintApi->getEvent: [404]

Hallo guys

I am trying to use Fingerprint on my own web server. I installed it with Composer and started with a website as described on https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/blob/main/README.md. I am not sure if I should replace "Fingerprint Pro Secret API Key" with my Application API Keey from fingerprint.com (secret key)? And what should I replace "visitorId" with? With the public key? I am confused. Thanks for some advice.

Exception when calling FingerprintApi->getEvent: [404] Client error: GET https://eu.api.fpjs.io/events/?ii=fingerprint-pro-server-php-sdk%2F1.0.1&api_key=<redacted> resulted in a 404 Not Found response: {"error":{"code":"RequestNotFound","message":"request id is not found"}}

// Fingerprint Pro Secret API Key
const FPJS_API_SECRET = "Fingerprint Pro Secret API Key";
// A mandatory visitorId of a specific visitor
const FPJS_VISITOR_ID = "visitorId";
// An optional requestId made by a specific visitor
const FPJS_REQUEST_ID = "requestId";

v3 not available in composer

Running to Upgrade from version 2

composer require fingerprint/fingerprint-pro-server-api-sdk:^3

Gives an error:

Problem 1
    - Root composer.json requires fingerprint/fingerprint-pro-server-api-sdk 3, found fingerprint/fingerprint-pro-server-api-sdk[dev-main, dev-INTER-481-fixed-datacenter-name, dev-develop, 0.0.1, 0.3.0, 0.4.0, 0.4.1, 1.0.0, ..., 1.2.2, 2.0.0, 2.1.0, 2.1.1, 2.2.0] but it does not match the constraint.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.