How can we retrieve automatically every new playlist created by a user - deezer

I'm discovering the Deezer API and wondering how I could retrieve autoamtically the new playlists I create with my user.
Or maybe I can create a folder, and store my playlists on that folder ?
The problem is : I don't know how to create a folder and I did not notice any button in the Deezer interface to do it.
Thanks for your help !

The folder feature is deprecated (it has already been removed from the website, and will also be removed from the APIs).
I am not really sure what you're trying to do. If you wan't to retrieve all playlist created by a specific user account, you can use the following API request :
http://api.deezer.com/user/1248300/playlists
The response will contain a JSON of all playlist that the user created or has in his favorites. You can then for each playlist check the creator field which contains the information about the user who created the playlist.
If you want to know which playlist was created with your application, that's more tricky as the API doesn't have any option to know that. You could name your playlist in a specific pattern, or keep track of the playlists in your own database.

Related

Creating Albums on iCloud and storing different photos in each album using cloudKit Swift 4

I am new to iOS Development and I am creating this project where I need to use CloudKit in order to save photos on iCloud. So basically my app will allow user to create different photo albums and inside every album adding photos of his/her choice, the catch is user will only be able to see this adding album page when a secret password is entered on a separate page.
Basically I need some guidance from you guys in order to achieve this task. After searching online I came to know that i have to use CloudKit in order to integrate iCloud in my app.
Basically i am looking for answers to this following questions :
After integrating CloudKit what am I suppose to do?
How can i create different folders on iCloud and how can I possibly give unique ids to them?
How can I upload photos to specific album?
If someone has reference code to such app,it will be of great help.
looking forward to get my doubts cleared.

Playlist not refreshed after adding a track via API

I'm trying to integrate Deezer with Slack. A user would be able to type !play Blackmill - Let It Be in Slack and via a webhook to Deezer API a track would be added to our room's playlist.
To add a track I post to http://api.deezer.com/playlist/123456789/tracks?songs=22945401, it returns true, and the track is actually added. But in the browser where the playlist is currently playing I don't get the new track until a page refresh, so the playlist just stops after the last track that was already there.
I know there's collaborative playlists which somehow work in a similar fashion, so I'm hoping it's possible to implement what I described.
Is there a way I can tell Deezer to refresh the playlist? Or maybe there's a better approach altogether?

Get Facebook's users' application list

I want to ask a question:
When a Facebook user use my apps, can I retrieve their application list?
I have a scenario that will require this:
People play my game.
If they have already play another game of mine, then they will have a bonus gift.
So I need to know if they've already used that another app or not. :)
You can use "me/accounts" for see all app of current user
(example : https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Faccounts )
So I need to know if they've already used that another app or not.
Then you’ll have to save the user ids of people playing your games into your own database.

How to fetch data from website within the app?

I am developing an app for Lawyers to be used here in Brazil and one of the features of this app is to track the phase of the lawsuit as it develops through time.
It works like this: the user fill a form within the app with the info on the lawsuit and it is stored in a database. Whenever the user wants to know if the lawsuit has any new record, he'll push a button and will get the records ordered by date.
The website that the app will fetch is http://www.tjpb.jus.br the problem is that I don´t know how to code in order to get the app access that site, input the lawsuit number and get the reply displayed on an UIWebView.
So could anyone help me, or just give me a guide on where to find a solution for this?
You will need to asynchronously go to server(via that url) and parse data, then show the responses in UIWebView. But as far as i know you will need a PUSH Server and clerify which data you will show from that site.. This is a great source to get started with app development, you can find video lectures in i-Tunes too
I'm not sure what you really want to do, but one scenario could be that you build a URL, like
http://www.tjpb.jus.br/?...&...
and load it in an UIWebView or if there is a webservice there you should use a lib like ASIHTTPRequest to manage your API calls.

How to get uploaded tracks from soundcloud?

I have implemented Sound cloud api in my app to export songs to soundcloud.
Now,I want to launch a browser in my app.This browser will allow the user to browse and listen to various other users songs that have been exported to SoundCloud through my app.
Also,the songlist should not include tracks which are not uploaded through my app.
The following is a screenshot from an app which uses similar functionality:
The only change in my app will be that I dont want the Sessions list.
Please suggest how to do this.
I am with an answer for my question. wat a relief.. :)
To get the app id first, the url is to be resolved by:
http://api.soundcloud.com/resolve?url=http://soundcloud.com/apps/{appName}
With this, you will get your app id.
(For more on Resolver, can refer to the link : https://github.com/soundcloud/api/wiki/12-Resolver)
Now, you can get tracks created with your app like this:
http://api.soundcloud.com/apps/{app-id}/tracks
For the browser look, it is to be customised on your own. Its not a standard from SoundCloud.