Git Product home page Git Product logo

bexio's People

Contributors

dependabot[bot] avatar elias-summermatter avatar mathewmeconry avatar vhf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bexio's Issues

Failed login for version 3.0

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?

TimetrackingsTrackingRecord not implemented correctly

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

  1. Implement 2 interfaces and use a union type
interface TimetrackingsTrackingDurationRecord {
    type: "duration";
    date: string;
    duration: string;
}
interface TimetrackingsTrackingRangeRecord {
    type: "range";
    start: string;
    end: string;
}
interface TimetrackingsCreate {
    ...
    tracking: TimetrackingsTrackingDurationRecord | TimetrackingsTrackingRangeRecord;
    ...
}
  1. Make duration and date optional and also add the start and end properties as optional
interface TimetrackingsTrackingRecord {
    type: "duration" | "range";
    date: string;
    duration?: string;
    start?: string;
    end?: string;
}

timetracking API

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

TypeError: Bexio is not a constructor

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.

FakeLogin doesn't work anymore

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?

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.