GithubHelp home page GithubHelp logo

deschutesdesigngroupllc / perscom-php-sdk Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 973 KB

A PHP package that helps kickstart your next PERSCOM integration.

Home Page: https://perscom.io

License: MIT License

PHP 100.00%
perscom php8 sdk

perscom-php-sdk's People

Contributors

dependabot[bot] avatar jannes-io avatar jonerickson avatar

Watchers

 avatar

perscom-php-sdk's Issues

FilterObject doesn't allow null as a value anymore

Before:

            ->search([
                'filters' => [
                    [
                        'field' => 'expires_at',
                        'operator' => '>=',
                        'value' => (new \DateTime())->format(Perscom::DATE_FORMAT),
                    ],
                    [
                        'type' => 'or',
                        'field' => 'expires_at',
                        'operator' => '=',
                        'value' => null,
                    ],
                ],

Now:

            ->search(filter: [
                new FilterObject('expires_at', '>=', (new DateTime())->format(Perscom::DATE_FORMAT)),
                new FilterObject('expires_at', '=', null)
            ])
            ->json('data');

TypeError; value must be string.

So if I change the value to 'null'. I get API error:

Internal Server Error (500) Response: {"error":{"message":"SQLSTATE[HY000]: General error: 1525 Incorrect TIMESTAMP value: 'null' (Connection: tenant, SQL: select count(*) as aggregate from `announcements` where `announcements`.`expires_a....

Nice SDK! πŸ”₯

Hey!

I like to occasionally look and find SDKs built with Saloon and see how people build them - I was looking through this one and thought it looked really good! Would you like me to add it Saloon's showcase section in the documentation?

Awesome work ☺️

Dependency "illuminate/support" missing.

Using any search request throws error.

image

To reproduce install package in a new project:

composer init
composer require deschutesdesigngroupllc/perscom-php-sdk

Run the following code:

        $user = $connection   
            ->users()
            ->search(filter: [new FilterObject('email', 'like', '[email protected]')])
            ->json('data')[0] ?? null;

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.