mozilla / makeapi-client Goto Github PK
View Code? Open in Web Editor NEWINACTIVE - http://mzl.la/ghe-archive - Make API Client Library
License: Mozilla Public License 2.0
INACTIVE - http://mzl.la/ghe-archive - Make API Client Library
License: Mozilla Public License 2.0
As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:
If you have any questions about this file, or Code of Conduct policies and procedures, please reach out to [email protected].
(Message COC001)
I tried using create()
as it's currently documented and got this:
{
"status": "failure",
"reason": {
"message": "Validation failed",
"name": "ValidationError",
"errors": {
"email": {
"message": "Validator \"required\" failed for path email",
"name": "ValidatorError",
"path": "email",
"type": "required"
}
}
}
}
I then renamed the maker
option to email
and got this:
{
"status": "failure",
"reason": {
"message": "Validation failed",
"name": "ValidationError",
"errors": {
"title": {
"message": "Validator \"required\" failed for path title",
"name": "ValidatorError",
"path": "title",
"type": "required"
},
"contentType": {
"message": "Validator \"required\" failed for path contentType",
"name": "ValidatorError",
"path": "contentType",
"type": "required"
},
"url": {
"message": "Validator \"required\" failed for path url",
"name": "ValidatorError",
"path": "url",
"type": "required"
}
}
}
}
Then I moved everything in the make
option up a level, alongside email
, and the call succeeded.
It looks like this bug was introduced in ec122d5... When calling update()
on a make, node bails with an infinite recursion error. If I roll back to 0.5.17 on npm (I would roll back to 0.5.18, but it's not on npm), the error goes away.
FYI: The following changes were made to this repository's wiki:
defacing spam has been removed
the wiki has been disabled, as it was not used
These were made as the result of a recent automated defacement of publically writeable wikis.
So the following URL is an existing make:
https://jess.makes.org/thimble/MTY3NTY4OTk4NA==/mobile-design-ideation-kit
However, calling makeapi.url()
with that URL:
var makeapi = new Make({apiURL: 'https://makeapi.webmaker.org'});
makeapi
.url("https://jess.makes.org/thimble/MTY3NTY4OTk4NA==/mobile-design-ideation-kit")
.then(function (err, makes) {
if (err) throw err;
console.log("# of makes: " + makes.length);
});
causes the text # of makes: 0
to be logged to the console.
Any ideas?
We're setting the timeout
property of an XHR before we're calling open()
, which makes IE mad. The following smoke test can reproduce the error:
<!DOCTYPE html>
<meta charset="utf-8">
<title>MakeAPI Client Smoke Test</title>
<pre id="status">Getting some makes...</pre>
<script src="src/make-api.js"></script>
<script>
var makeapi = new Make({apiURL: 'https://makeapi.webmaker.org'});
var status = document.getElementById('status');
makeapi.then(function (err, makes) {
status.textContent = (err ? 'ERROR: ' + err
: 'Yay, got ' + makes.length + ' makes!');
});
</script>
There is no method called delete()
; it's remove()
in the current master.
For http://weblitmapper.webmakerprototypes.org/, we'd like to make it possible to show the submitted resources by number of likes, so that we can surface the popular ones, but it doesn't seem like sortByField: 'likes'
does anything. Can this be implemented?
The documentation for like()
and unlike()
mentions that a user's email address should be passed-in, but on staging this results in a 500. Using a username instead works.
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.