GithubHelp home page GithubHelp logo

workbooks / client_lib Goto Github PK

View Code? Open in Web Editor NEW
10.0 5.0 15.0 919 KB

Workbooks API language bindings (PHP, C#, Java, Ruby, VBA). Workbooks' API is metadata-driven so these do not need to change often and API changes are always backward-compatible. We are proud that code written to our API in 2011 continues to be work and be supported.

Home Page: https://www.workbooks.com/api

C# 19.68% Java 20.10% PHP 45.63% Ruby 10.16% VBA 4.43%
php csharp java ruby vba workbooks crm

client_lib's People

Contributors

deanfaulkner avatar liamgold avatar workbooks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

client_lib's Issues

API Gem?

Any reason you guys opted not to release the Ruby wrapper as a gem?

The name "workbooks" seems to be available 😄

Python library

Would it be possible to provide this library in python? Please I need it quick

Old / dead API?

I've noticed this client_lib repo hasn't been updated in over a year and a half. That would be all good/fine except that concerns me Workbook hasn't added any features, since the client_lib's haven't been updated and there are a couple of issues filed, for instance #6 hasn't been answered since its creation over 6 months ago.

If someone could address my concerns and possibly make a CONTRIBUTING guide?

c# lib possible error in post_params

From the console tracelistener:
URl to connect: «https://secure.workbooks.com/accounting/invoices.api?_dc=389000?_limit[]=1&_select_columns[]=lock_version&_ff[]=id&_ft[]=eq&_fc[]=43851&api_key= (etc)

Surely that should be a "&" not a "?" before _limit[]
Same for most queries - the first real query parameter is therefore ignored!

Update: sample VB code:

Dim workbooks As WorkbooksApi.WorkbooksApi = LoginToWorkbooks(apikey)
Dim queryParams As New Dictionary(Of String, Object)
Dim response As WorkbooksApi.WorkbooksApiResponse
Dim endPoint As String

endPoint = "accounting/invoices"
queryParams.Add("_limit", 1)
queryParams.Add("_select_columns[]", "lock_version")
queryParams.Add("_ff[]", "id")
queryParams.Add("_ft[]", "eq")
queryParams.Add("_fc[]", 43851)
response = workbooks.assertGet(endPoint, queryParams, Nothing)

which gives this console output

ApiWrapper Information: 2 : URl to connect: «https://secure.workbooks.com/accounting/invoices.api?_dc=283000?_limit=1&_select_columns[]=lock_version&_ff[]=id&_ft[]=eq&_fc[]=43851&api_key=REMOV£D&client=api, »

GetTotal method in Workbooks API for C# throws an exception

This method:

public int? getTotal() {
if (response != null) {
Dictionary<string, object> responseData = (Dictionary<string, object>) response["response"];
total = (int?)responseData["total"];
}
return total;
}

throws an exception because the cast is invalid.

Suggested fix:

public int? getTotal() {
if (response != null) {
Dictionary<string, object> responseData = (Dictionary<string, object>) response["response"];
var t = (JsonElement)responseData["total"];
if (t.ValueKind == JsonValueKind.Number) return t.GetInt32();
}
return 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.