I've looked into the documentation, but have yet to see how can I do a search based on UPC.
I can see what I get it from each album, but how to do the lookup?
Does anyone know how?
Here's the format for UPC album lookups: http://api.deezer.com/album/upc:093046516024
Related
I am a complete beginner when it comes to extending Wordpress REST API. I need to extend the API so that a request to /wp-json/wp/v2/posts?orderby=comment_count&order=asc would yield a response with posts that are ordered by comment count in ascending order ie. posts with the least amount of comments appear first.
I skimmed through the REST API Handbook and watched a couple of YouTube videos, but found no answer to my problem. I found this answer and it looks promising, however I'm not entirely sure if the code provided there fits my needs. From what I could gather WP_Query class is what I'm looking for, but I don't know how to make use of it. My second problem is that I don't know where exactly to place any code I may have stumbled upon ie. which file is supposed to play host to the code eventually?
I would greatly appreciate detailed answers and possibly sources for more information regarding this topic.
According to WordPress documentation orderby only accept following parameters:
author, date, id, include, modified, parent, relevance, slug, include_slugs, title
But you can add custom parameters to orderby if you have access to Wordpress website code. Please follow the below URL:
https://www.timrosswebdevelopment.com/wordpress-rest-api-post-order/
Let me know if you need more help.
I am trying to query the iTunes API for movies in a specific genre. I have been searching for hours now but can't seem to figure it out.
Example: https://itunes.apple.com/search?term=james+cameron&limit=25&entity=movie
This will give me a list of movies made by James Cameron, but I wan't to search for all the movies that match a specific genre, ex: "Romance".
When I look at the documentation here: https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/
It states that I can search for attribute=genreIndex, but I can't find anywhere this 'genreIndex' is specified. So I have no idea what to put in here? - I found several other questions relating to the same, and they all link to this: https://affiliate.itunes.apple.com/resources/documentation/genre-mapping.html
Which no longer exists?
Is there something I don't understand, or how am I supposed to do this?
Thanks! :)
This solutions is not in the iTunes documentation, I found it by trying around. (I think that 'genreIndex' might be deprecated, and is now 'genreTerm' (Maybe Apple forgot to update it on the documentation). However, this works perfectly:
https://itunes.apple.com/search?term=romance&entity=movie&attribute=genreTerm
In the context of showing all albums of a given artist, as returned by e.g.
http://api.deezer.com/artist/13/albums,
..I would assume it's a pretty common use case to want to sort the albums in discographical order (i.e. by release date) for display.
Yet, I haven't found a way to do that, as the release_date property seems to only be available when requesting a single album, and I haven't found a way to affect the sort order in the response.
Am I missing something?
Any help with this is much appreciated! Thx.
I don't think there is a possiblity to do this straight forward at the moment, maybe you can file a request at Deezer's side.
You can get a list of all albums for an artist, open the details for each album individually (album/albumid), add them to a list which you can then sort on release date.
Seems like a bit of a hassle for something that will probably be a quick job on Deezer's side, but if you really need it, that's the way at the moment.
We just added the release_date property on the endpoint /artist/[id]/albums.
Jimmy
Uploading a photo, and setting the name (caption) of that photo is no problem, I am trying to tag a name I mention in the caption. According to the documentation, the way to do that is with the name_tags field.
The field is listed in the api-reference, but I can't find the correct way to use it, and there is no example either.
I could find one other question about this here, but it was never answered (he just gave up and used something else).
Does anyone know if the name_tags field is actually there to be used through the api, and if yes, how?
I think you should try to using message_tags field.
I'm trying to create an app which will need to search the web by using Google/Yahoo/Bing or any other reputable search engine. I really need these search results looking look though, so my first thought was to put them in a UITableView. How can I do this? Would I need to grab a specific API? Are there any search engines out there which provide these sort of APIs?
I've looked into this extensively, but haven't managed to find anything similar.
I'd appreciate some help with this! Thanks.
You can use Google Custom Search API.
Check out here
The API is RESTful and the response can be JSON or Atom format. You should be able to use JSON and convert to NSDictionary/NSArray, then display in the table view.