mathewmeconry / bexio Goto Github PK
View Code? Open in Web Editor NEWNPM Package for bexio.com
License: MIT License
NPM Package for bexio.com
License: MIT License
when calling fakeLogin(username, password)
, it throws Error: Failed at step 2: do the login
for version 3.0.0 of the API, can anybody confirm?
Hi,
first of all thank you for building this amazing client. While trying to create a timesheet I faced the following issue.
Currently TimetrackingsTrackingRecord is implemented like this:
interface TimetrackingsTrackingRecord {
type: "duration" | "range";
date: string;
duration: string;
}
but this only allows for the duration type.
There are 2 ways to approach this issue
interface TimetrackingsTrackingDurationRecord {
type: "duration";
date: string;
duration: string;
}
interface TimetrackingsTrackingRangeRecord {
type: "range";
start: string;
end: string;
}
interface TimetrackingsCreate {
...
tracking: TimetrackingsTrackingDurationRecord | TimetrackingsTrackingRangeRecord;
...
}
interface TimetrackingsTrackingRecord {
type: "duration" | "range";
date: string;
duration?: string;
start?: string;
end?: string;
}
Bexio updated their API to version 3.0.
An update of the library to the new version would be a great move because a lot of new endpoints are now available.
Hi,
First, thanks for the work, looks promising. I wanted to automate some time tracking tasks (really an annoying interface in Bexio). From what I can see this is not yet supported, correct? If so would be happy to test this. Creating a timetracking is what I'm looking for
Hi,
I get the error "TypeError: Bexio is not a constructor" by Following your example.
// import the module
import Bexio from "bexio";
//assign token string
var API_TOKEN = 'my token';
// init the module with the API_TOKEN
const bexio = new Bexio(API_TOKEN);
// show the contact with ID 1 (Promise)
bexio.contacts.show(1).then((contact) => {
console.log(contact);
});
Neat package by the way.
Thanks for this library, it has been working like a charm.
However, a couple of weeks ago it stopped working. We're using the fakeLogin
and now it always gives us an Invalid state
error.
It looks to me like the URL that is supposed to contain the code and state is not what it's supposed to be.
let responseURL = new URL(res.request.href)
It should probably be something like /?code=xxx&state=xxx
, but when I print it it's something like https://my.bexio.com/simplesaml/saml2/idp/SSOService.php?SAMLRequest=xxx
, so it cannot extract the code and state.
Am I the only one with this issue or did Bexio change anything in their login flow?
The access token doesn't get refreshed automatically...
When trying to list users I receive a 404 because the library is accessing v2 instead of v3
To prevent MITM attacks it would be good to implement the signature part of this documentation
http://docs.bexio.com/key_version/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.