Giter Site home page Giter Site logo

zipmark-php's People

Contributors

jakehow avatar mecampbellsoup avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jmegha pushkspl

zipmark-php's Issues

Resource updates fail

I'm trying to update bills. Is there a way to update the content of the bill? I've tried:
$bill = $client->bills->get('billId');
$bill->content = $jsonString;
// Or when I do this.
$bill->status = 'invalid';
$bill->save();

I receive the following error:
Fatal error: Call to a member function request() on a non-object in /lib/zipmark/resource.php on line 110
This has to do with the getClient method returning NULL.
I've tried to fix this error myself, which I found at resource.php line 78 $this->_client is producing NULL. If you use $this->getClient(), the client object is passed.
If I change this, I also get these errors:
Notice: Undefined offset: 2 in lib/zipmark/http.php on line 94

Fatal error: Uncaught exception 'Zipmark_NotFoundError' with message 'Object not found' in /lib/zipmark/client_response.php:59 Stack trace: #0
/lib/zipmark/client.php(87): Zipmark_ClientResponse->checkResponse() #1 lib/zipmark/resource.php(110): Zipmark_Client->request('PUT', 'https://sandbox...', '{"bill":{"links...') #2 index.php(104): Zipmark_Resource->save() #3 {main} thrown in lib/zipmark/client_response.php on line 59

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.