salesking / sk-api Goto Github PK
View Code? Open in Web Editor NEWOUTDATED & DEPRECATED use our new SDK at https://github.com/salesking/sk_sdk
Home Page: https://www.salesking.eu
License: MIT License
OUTDATED & DEPRECATED use our new SDK at https://github.com/salesking/sk_sdk
Home Page: https://www.salesking.eu
License: MIT License
when we search by email/number we only want the first result, no need to fetch and parse 100 records <-> support &per_page=1
without a local salesking installation, please provide a test account live/staging etc
Cheers
Mark
site must be https://my_sub.salesking.eu
otherwise it did not work for us. (ree-1.8.7)
def set_api_connection
SKApi::Resources::Base.set_connection({
:site => 'my_sub.salesking.eu',
.....
})
end
Could be automatically set to subdomain,
in your example organisation was missing
we used this:
organisation = SKApi::Resources::Base.connection.site.host.split('.').first
client = SKApi::Resources::Client.new(
:organisation => organisation,
....
)
https://.../api/clients?filter%5Bnumber%5D=159857&format=json
it would be great if simple stuff like save could also work in 2.3, the generated http requests should not be that different (we just tried and requests look roughly the same) only problem is that we are getting http 500 errors from salesking
client is created, but response still is 406
we are using json and also tried other formats, but no success so far
config = {
...
:format => :json
}
ActiveResource::ClientError: Failed. Response code = 406. Response message = Not Acceptable.
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.