Git Product home page Git Product logo

vebra-php-api-wrapper's People

Contributors

croxton avatar damonjones avatar davgothic avatar livingos avatar mdavis1982 avatar mike182uk avatar thinkerytim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vebra-php-api-wrapper's Issues

attribute value 'featured' is always 1

attribute value 'featured' is always 1, even in fetched xml it is 0, i guess the error is in type casting of attribute type 'featured' as Boolean to int then it workd.

Intermittent 401 Unauthorized

Hello,

Any ideas why I may be receiving 401's intermittently? I'm working on my local machine, I have a .txt file that contains my token.

Most of the time, I can fetch data (branches, properties etc). However from time to time, an UnauthorizedException is thrown and I can't seem to use the Vebra API for a little while (haven't worked out if there's a time period I cant' fetch data).

I've read their documentation and can't find any reason why I'm getting this, like rate limiting etc.

Any help would be greatly appreciated!

Frequent timeouts

This isn't your problem, but Vebra's webservices are really pretty terrible about reliability. Timeouts are extremely frequent, where the API won't return data in the default 5 seconds allowed by the buzz client.

You can edit the API.php construct method and add a line for $this->client->setTimeout(30); or whatever-- but even with a 30 second timeout they are not always reliable. If you ever feel the urge a method to retry would be welcome-- or maybe allow the timeout to be passed into the constructor.

Thanks!

Authenticating for the first time

How do you go about generating a token the first time you instantiate the API?

YDD\Vebra\TokenStorage\File attempts to load an existing token and throws an exception when it can't find one.

You have some logic to handle expired tokens in the API but not requesting one in the first place.

What did you intend to happen here?

Many thanks

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.