centurylinkcloud / clc-sdk Goto Github PK
View Code? Open in Web Editor NEWsdk for https://www.ctl.io/
License: Apache License 2.0
sdk for https://www.ctl.io/
License: Apache License 2.0
Details about the HTTP requests made against the CLC API:
-- add the Host header (these are HTTP/1.1 requests, right?)
-- add the Accept:application/json header (sdk docs say this is required, though it works fine without)
-- omit the Content-Type header on requests that have no message body
we can infer alias from the login results (and set it in the client config object). proposed patch would be to remove the alias arg from NewConfig, capture it in Authenticate() and patch all remaining refs? Is there a use case where the user would not belong to the account alias provided?
similarly, was wondering whether we could move baseUrl from a required arg. support would be via env var or custom file-based config.
do you have a running list of sdk clients at this point?
The Alias can be determined from the return of the login into the v2 api.
When calling GetCapabilities there is an error when the response json is unmarshalled into the CapabilitiesResponse struct. The error reported is:
json: cannot unmarshal number into Go value of type string
The issue is caused by the response returning a number in the json:
"storageSizeGB": 0,
But in the struct we define the response as a string:
StorageSizeGB string json:"storageSizeGB"
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.