Comments (11)
@penn5 Just to preface the API is only for contributors building or extending the website. All of the data is provided in the meta.json
(the public website uses that data and not the API).
- https://github.com/Templarian/MaterialDesign-SVG
- All of these repos are going to be moving to Pictogrammers, so if you find this later look in this repo.
With that said if you're building features for the site the API is at https://dev.materialdesignicons.com/api/
You probably forgot the subfolder (this is moving to https://api.pictogrammers.com/*
, but we're still working on that after a few more site features go out.
from pictogrammers.com.
Yep, what @Templarian said. 😄 We would be really interesting in what you're currently using the API for. If you're using it for something not related to the site and need help transitioning to using the meta.json
files, please let us know.
from pictogrammers.com.
I'm using the API to automatically check for updates to icons in my android app. I grab all the metadata from meta.json and just use the API for exports.
from pictogrammers.com.
https://dev.materialdesignicons.com/api/packages returns 404... The same error for https://dev.materialdesignicons.com/api/download/icon/vectordrawable/93D7B6DC-17D2-4A2B-B787-79E2E8BEF304.
I got the earlier error not because I missed out the /api
but because I wasn't using the dev.
prefix (this used to work).
from pictogrammers.com.
This doesn't sound like an appropriate use case for the API. When we release new versions of the package, simply update and the meta.json will have the latest changes. Additionally, you can easily generate a Vector Drawable using the path data.
from pictogrammers.com.
I don't see the problem with using the API for this - it only takes place at build time just before a release and I make about 10-20 requests. That probably averages at one request per day, maximum. I know I can generate the drawable from a path, but where should I get this path data? Either by parsing the SVGs in https://github.com/Templarian/MaterialDesign (very ugly) or from the API (broken).
Whatever the problems with my use case, the issue still exists.
from pictogrammers.com.
@penn5 The JSDelivr CDN is exactly what you would need. Our third party guide describes best practices for obtaining this data. These releases are always stable and up to date with latest.
- https://pictogrammers.com/docs/contribute/third-party/
- Note the download endpoints are all going to be removed as the site has already moved to client side generation of these assets.
We'll be implementing API keys eventually, so relying on the private site API will eventually break.
from pictogrammers.com.
I don't see the problem with using the API for this.
The problem is that it goes against our wishes. The documentation link you shared in the very first post explicitly states:
Please do not use these endpoints to scrape the site or to build third party applications. All data is provided in the meta.json on the CDN or in the GitHub repo after every release.
Unfortunately, that means we aren't going to provide assistance to you in figuring out how to consume it. As Templarian stated, we're in planning stages to implement API keys to prevent just this type of behavior, which means even if you figure it out, it will permanently break for you soonish. It's really in your best interest to utilize the static assets (e.g. meta.json
) or the CDN.
from pictogrammers.com.
I did switch to the CDN. I think you should a) make more clear on the documentation how this is used, for people who aren't familiar with Javascript packages, and b) fix your API for anyone who is a valid user (since it doesn't seem to work).
It would also be nice to be able to fetch the raw path data, rather than having to parse the SVG files.
from pictogrammers.com.
It would also be nice to be able to fetch the raw path data, rather than having to parse the SVG files.
Raw path data is available via @mdi/js
if you're using JavaScript to do your scripting.
from pictogrammers.com.
Raw path data is available via
@mdi/js
if you're using JavaScript to do your scripting.
I'm not.
from pictogrammers.com.
Related Issues (20)
- When will you be changing old twitter icon to X? HOT 1
- URL for all icons in a certain release
- Support Material Symbols HOT 1
- Generator combining existing icons HOT 1
- MDI icon library page failing to load HOT 5
- Include X icon (to change the old Twitter icon) HOT 1
- New Feature
- Hot water tank HOT 1
- Add Rightwards Arrow Over Leftwards Arrow
- shutter-blades-open HOT 1
- Account HOT 1
- add social media icons HOT 1
- Draw.io support
- Aftab Bhai
- Why are so many icons being deprecated? HOT 1
- Vip Tips HOT 1
- Search with Cyrillic letters brokes site. HOT 1
- Page crashes when type "!" in search HOT 1
- Rails getting started page uses inexisting gem HOT 3
- The page content can't display normally HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pictogrammers.com.