Get Deezer Waveform via API or URL - http

I recently saw this Deezer Waveform in my Deezer-Explore-Feed:
http://cdn-images.deezer.com/images/waveform/9e5387f693247f77cd4a5bfa722d2ab3-0.png
It is similar to those used by soundcloud and seems to be avaiable to publicity via the above URL.
The linked Waveform is from the Track with the ID 86543213, called LA.Love by Fergie.
The only problem is that i dont know how to get the deezer-waveform-url for another ID, if it is possible to convert the ID somehow or if we need to use a specific API function.
I would really appreciate it if anyone has an idea on how to retrieve the URL.

Go to the Icon near the Heart shape. It's call Share. Copy URL paste to Clip board then Open Deezer downloader, paste the URL address. Then CONVERT, Download

The linked Waveform is from the Track with the ID 86543213, called LA.Love by Fergie.
The ID doesn't exist when making a call to http://api.soundcloud.com/tracks/{track_id}.json?client_id={your_api_key}.
If the track your looking for has been modified and you still have the ID, you can just use the link template above and find the data you're looking for under the waveform-url attribute.

Related

How to retrieve addresses within the zip code by zip code, I searched for the API, but it did not solve my problem

I now need to pass a zip code to get a detailed address list (the picture below has the desired effect), I try to use it https://geocode.search.hereapi.com/v1/geocode?qq=postalCode=D04+WR52, but it returns only the information of this zip code area, not the address list. I am very confused now. I use this API in the UK
The postal code is premium content to access, depending on your plan. Contact your vendor.
According to the docs, it looks like you need to use discover or autosuggest (not geocode)

LinkedIn API V2 - How to get profile photo used for an organization?

I'm using the endpoint https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee&role=ADMINISTRATOR&projection=(elements*(organizationalTarget~(localizedName)))&oauth2_access_token={{access_token}} to get all organizations for a user. I tried different projection fields but still wasn't able to get the profile photo. Is there a way to change projection to get photo or is there possibly another endpoint to get this?
I could not figure out a way to get back a logo with the organizationalEntityAcls endpoint. I do not believe its available.
Instead I called the organizations end point with the ids send back from the above.
NOTE: organizationId is just the id not the full URN.
https://api.linkedin.com/v2/organizations/{organizationId}?projection=(logoV2(original~:playableStreams)),
It is possible actually. This is the call that worked for me.
https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee&role=ADMINISTRATOR&state=APPROVED&projection=(elements*(organizationalTarget~(id,localizedName,logoV2(original~:playableStreams))))")
Ervin Kalemi's answer is actually right if you want to get photos for all organisations instead of a single organization, but the URL is not fully correct at the end. This URL will work:
https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee&role=ADMINISTRATOR&state=APPROVED&projection=(elements*(organizationalTarget~(id,localizedName,logoV2(original~:playableStreams))))

How to expire Branch.io link within specific time? (Deep linking via branch metrics)

I am using link to generate deep linking. I am using their public API's endpoint to generate links.
Here is their endpoint: https://api.branch.io/v1/url
I append my branch key and data that I need to associate in this link. Everything is working fine but I need to expire this link within one hour.
Reading up here: https://github.com/BranchMetrics/branch-deep-linking-public-api#creating-a-deep-linking-url
I added "duration" key also, but it didnt expire the link.
It will be great if anyone could help me in figuring out how to expire branch.io link.
Alex from Branch.io here: the duration parameter is used for something different, so it's not going to be able to do what you want. We don't have a built-in feature to expire links, but you could create something close to it yourself:
Add a custom link parameter containing a timestamp for when the link was created.
Check for that timestamp when handling the link at the destination, and do something different if it is more than an hour old. I'm guessing this would be inside your app, and also on whatever fallback URL you have specified for when the app isn't installed or the user is on desktop.
Mail from branch.io support team suggested this answer as below:
If you found out about the $exp_date parameter from here then the
parameters in that list are only used for iOS Spotlight Indexing but
will be used by Branch in the future. A better solution than
utilizing $exp_date is to code logic into your client to determine
what to do with link data based on date. This way, your deep links
will always work and always carry data through, and you won't have to
worry about users clicking empty links.
This way, you would include date as an extra meta key/value pair, and
examine this date in your client when receiving link params to
determine if you want to honor the link's contents or not.

Is there a way to get a pastable link from Google Maps Directions Service?

When we use maps.google.com, there's a way to 'Send' the current directions searched via email. One could also copy-paste a unique URL - even shorten it.
Is there a way to get this through the JavaScript API (v3)?
You could generate the directions and store it in the database - after that you can generate a link to recall the route, and shorten it with the Google URL Shortener API
The API doesn't do this, because if you have start and end locations in order to get directions, it's quite easy to construct a url yourself:
http://maps.google.com/?q=from:A to:B (encoded if necessary)
If you want to use your map to show the route, then you will need to implement your own system of querystring parameters and handle those in your map page.

Google Earth api get coordinates

here goes a simple question:
I've got a showKmz() function which receives an URL belonging to a KML/KMZ file and which goes straight ward to a fetchkml() method, after that it gets appended to my Google Earth instance.
Now I want to recover the coordinates of this fetched KML/KMZ file and use them to immediatelly after load a custom ico I want to put exactly on the same location of the KML/KMZ file I fetched.
The reason for that is that I want to show this files on Google Earth with their clicable icon despite of whatever icon those KML/KMZ could have by default...
Does anybody knows a way to either achieve the goal of retrieving the coordinates or even better: a more direct way to make this custom icon superposing I want?
Thanks in advance!!
Bye!!
From here
http://code.google.com/apis/earth/documentation/kml.html
When getting a KML/Z file with fetchKml, you have in the callback an option to interact with the KMLFeatures you've obtained before appending them to the globe. There could be several items in that file which have coordinates, as well as several icons. So it sounds like you want to get the features, iterate over them, and insert an IconStyle for each (or replace existing IconStyle) to have it render with the Icon you want. You don't have to place a new feature at the same location as the existing ones.

Resources