zalora / myrapi Goto Github PK
View Code? Open in Web Editor NEWmyracloud api client
License: MIT License
myracloud api client
License: MIT License
No matter what we do, we either get a real 403 (wrong credentials), a 403 with pretty message (right credentials but posting to the domain rather than to subdomain) or a 200 but with an error message in the body. Strangely, update
which takes the same identifying information (domain name, id, modified date) works fine.
Sent e-mail to support. This ticket is to track delete.
(Follow up from #4)
I think this will be a good interface for smart-create
:
myrapi smart-create --subdomain abc.example.com --type CNAME --ttl 300 \
--values "abc1.example.com abc2.example.com abc3.example.com"
For each value, the command should check if a matching record exists (based on subdomain and value) and call create
or update
accordingly.
After everything is done, the command should check the number of records for that subdomain versus the number of values given, and emits a warning if they don't match.
This is needed to query the values associated with a certain name. The list
command can be abused for this information (e.g list
repeatedly until all pages are fetched, then filter from the result). It would be nicer, though, if the full list is provided via an option, or a get
command is implemented.
Hi all,
I am not a haskell developer, but I would like to give api wrapper a run to at least see list of parameters. And I got stuck during build process.
Trying under Ubuntu, here is what I did:
cabal update
cabal install
I am always getting same error message
src/Myracloud/Types.hs:21:18:
Could not find module ‘Servant.Common.Text’
Perhaps you meant
Servant.Common.Req (from servant-client-0.8@serva_JQifRGzBlJd8gexEP3Zop8)
Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
myrapi-0.1.0.0 failed during the building phase. The exception was:
ExitFailure 1
any hint?
ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3
Thanks in agvance
I tried to create an A record for a subdomain that already has a CNAME record:
"ERROR: Failed with \"HTTP PUT request returned invalid json: The key \\\"path\\\" was not found\""
I guess there is a message in the result of the API call. Let's just print that?
Just a self reminder:
Should be fairly simple at least in first case.
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.