How to get a podcast episode by its id in the iTunes API? - rss

https://podcasts.apple.com/us/podcast/all-in-with-chamath-jason-sacks-friedberg/id1502871393?i=1000538031954 is a podcast episode. Its ID is: 1000538031954.
I'd like to get this episode's info and metadata through the lookup API.
I tried making this API call
https://itunes.apple.com/lookup?id=1000538031954&media=podcast&entity=podcastEpisode
but it returns no results. I'm wondering if there's a way to do that, or is my only option to scrape the url and get the info myself?

Only the show information is available in this API. You can see the media entities that are available in table 2-1 from the documentation: https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/iTuneSearchAPI/Searching.html#//apple_ref/doc/uid/TP40017632-CH5-SW1

Related

Advanced Search in Alfresco Using CMIS

I am developing one HR web Application and it is connected to alfresco 5.0 repository, in my custom web application i need one Advanced search feature.
Here want to get all Employee documents who have joined from xyz date to current date.
I am thinking for writing custom web-script.
but not getting will it be a proper approach or not.
Can you please suggest me that Either CMIS will be a better approach or custom web-script will be better?
If CMIS, then please provide sample code or steps.
Thanks in Advance
CMIS has everything you need for this. If you are using CMIS elsewhere in your application, use CMIS for this. If you aren't using CMIS then write a web script.
If you choose to go the CMIS route, here is an example from the custom content types tutorial showing how you use CMIS to do searches with date ranges against dates in a property defined in an aspect:
queryString = "select d.cmis:objectId, w.sc:published from sc:whitepaper as d join sc:webable as w on d.cmis:objectId = w.cmis:objectId " +
"where w.sc:published > TIMESTAMP '2006-01-01T00:00:00.000-05:00' " +
" and w.sc:published < TIMESTAMP '2007-06-02T00:00:00.000-05:00'";
In this example, the "sc:webable" aspect has a date time property called "sc:published" and I'm getting back the white papers published between 1/1/2006 and 6/2/2007. In your case that publish date would be the employee hire date.
Depending on how many employees there are, you may want to page over the result set. To understand how to do that see here.

Places Web Service API, filter by country. Not working

I'm using the Google Places Web Service API to query places serverside as documented here:
https://developers.google.com/places/web-service/autocomplete
According to the docs it should be possible to filter the results by country via parameter 'components=country:SE'.
However when querying like below the filtering doesn't seem to work. The resultset contains both entries from Sweden and other countries.
What am I doing wrong here, any idea?
Example REST query
https://maps.googleapis.com/maps/api/place/queryautocomplete/json?input=sto&components=country:SE&key=[YOUR-API-KEY-HERE]
You are running a QueryAutocomplete-request(where the components-parameter isn't available), but the linked documentation is for PlacesAutocomplete-requests.
With a PlacesAutocomplete-request you would get the desired result(limited to sweden )
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=sto&components=country:SE&key=[YOUR-API-KEY-HERE]

Freebase get singer from song

I want to develop an app that pulls the singers of any song that we query for. So if someone types in Carry On from the Some Nights album, the app is supposed to pull out who all sang that song. Thanks.
You can search for this using the Freebase Search API and Search Metaschema like this:
https://www.googleapis.com/freebase/v1/search?query=Carry+On&filter=(all+/music/release_track/release:"Some+Nights")&output=(/music/release_track/release+/music/release_track/recording./music/recording/artist)
There are three parts to this API request: the query, the filter and the output parameter. The query is simply the name of the track that you're looking for:
query=Carry+On
The filter parameter constrains the results to only tracks which are part of an album release named "Some Nights"
filter=(all+/music/release_track/release:"Some+Nights")
The output parameter tells the API which properties to return in the response. In this case we want to know which release the track is part of and which artist recorded the track.
output=(/music/release_track/release+/music/release_track/recording./music/recording/artist)
You'll notice that this query actually returns 8 matching tracks right now. This is because there were many different releases of the album which all contained recordings of that track (and not necessarily the exact same recording).
For what you're building it sounds like you should be able to just take the first result. You can constrain the search API to only return the first result by adding a limit parameter to the request:
limit=1

How to retrieve date of birth of all connections in linkedIn API?

I want to get the date of birth of connections using LinkedIn api.I got some informations using
http://api.linkedin.com/v1/people/~/connections:(headline,first-name,last-name,location)
If i am trying to add dateOfBirth or date-of-birth parameter to this api but it is not working. Can anyone please help me to get the date of birth of all connections?
headline,first-name,last-name,location are comes under basic profile but date-of-birth comes under full profile. So you have add the permission(r_fullprofile) for this one. Try Like this
NSArray *grantedAccess = #[#"r_basicprofile ",#"r_fullprofile", #"r_network"];
According to this document, you will need to apply to be able to retrieve the full profile information, like date of birth:
Member profile fields available to Apply with LinkedIn developers
The following selection of profile fields are only available to applications that have applied and been approved for the Apply with LinkedIn program:
Full Profile Fields
(...)
For more information, visit the Apply with Linkedin page.
Note: This is an old question but things may have changed, so this is for future reference.

Possible bug in the "since" key, or it supposed to work like this?

I'm querying the facebook feeds to get the latest feeds. I'm using the FB api:
55xxxxx/feed?since=1323269266&date_format=U&limit=5
The since date is taken from the previous api call first object create_date. Now the problem is that if the Group/News (id :55xxxxx) the first object's create_date is still 1323269266. It will give me again the 5 feeds. But I would like it to give me any new feeds after 1323269266. Any idea how?
Try a combination of since and until parameters rather than just since.

Resources