Create a playlist with Spotify iOS SDK in Swift 5 - ios

Question says it all. I'm trying to interact with getting/creating/editing playlists using the Spotify iOS SDK in Swift 5. I can't find any documentation about it at all and all the other Stackoverflow questions I find are a few years old or not relevant. I'm using the SPTAppRemote, but I've got a feeling that I can't interact with playlists using this class?

The best way I found to interact with playlists and API endpoints was to use the access_token you receive from logging in and then sending regular API requests to the Web API with that token. It seems like the iOS SDK is more for authentication and playback while the Web API is used for manipulating playlists, searching, etc.

Related

How can I use the deprecated YouTube Data API to get video comments?

I have an application where we would like to display YouTube video comments. In the YouTube API 2 there was support for retrieving video comments - this functionality is no longer available in API 3.
As stated in the docs:
You can continue using the v2 API for comments and uploading video
captions for now, and we'll be adding this functionality into the v3
API soon. While we don’t have specific dates yet, we will release that
functionality so that developers have as much time as possible to
migrate to v3.
...there
will not be 100% feature parity between the v2 and v3 APIs. Please see
the v3 API documentation for more details as to what functionality is
supported in v3.
As I understand it, you need to register your app through the Google Developer console for the API you wish to use first, and there is no longer an option to add YouTube API 2. I tried sending a request to the old endpoint
https://gdata.youtube.com/feeds/api/videos/VideoIdHere/comments
but got the following response
No longer available
Is there a way I can still use the API 2 to retrieve video comments? How can I accomplish this?
Edit:
YouTube video comments are now available at the following endpoint
https://www.googleapis.com/youtube/v3/commentThreads
See the docs here
Nope, API v2 is completely deprecated and no longer available. You will need to use API v3.
Example call: https://www.googleapis.com/youtube/v3/commentThreads?part=snippet%2C+replies&maxResults=50&videoId=VIDEO_ID&order=time&textFormat=plainText&key=API_KEY

Receiving information from social media into iOS

As the title suggests I want to add Social media extensions into my iOS application, I have seen multiple tutorials on how to publish to an external source e.g. Facebook, Twitter, Instagram etc... which seems easy enough.
Now my question is it possible to do the reverse and instead retrieve information from these external factors? For example if I set the application to look directly at my Facebook profile when loaded and retrieve my Facebook status's.
I've heard of the concept of a Facebook Graph API which I plan on learning of the next couple of weeks. I'm looking for any resource materials or videos which I can use to learn from. I'm currently looking through Facebook's developers options but any additional information would be great.
You're going to want to use their official API. These links are a good starting point.
Facebook SDK for iOS
Twitter SDK for iOS
Instagram support for iOS

Google Voice via OAuth2.0

My goal is to retrieve Google Voice voicemail audio messages and download them.
On May 27, 2015 - Google permanently disabled the ClientLogin API for Google Voice and encouraged migration to OAuth2.0.
I created a project in the Google Developers Console, but I was unable to identify the API that should be used. I am not alone (Google voice PHP OAuth 2.0).
It seems unlikely to me that Google would permanently disable the Google Voice ClientLogin API without having a working solution available -
especially since they deprecated the GV ClientLogin API more than 2 years ago and left it available for use for so long afterwards.
After further research, I discovered that the GMail API permits downloading of attachments.
Theoretically, if I set Google Voice to forward all Voicemails to GMail, I could download the audio file using the GMail API
(gmail.users.messages.attachments.get).
NOTE: I am not certain that this will work! I worry it may not because when you click on Play Message in Gmail, it forwards to the Google Voice
page - where you can choose to download the message. It seems this approach may result in needing a Google Voice API as well.
How are we supposed to retrieve Google Voice voicemail audio messages and download them using OAuth2.0?
I own a Google Voice app for Windows 8 (GVoice) which very recently broke due to the removal of ClientLogin. From my research it looks like there is now no longer a programmatic way to authenticate to Google Voice. ClientLogin is gone, and Google Voice is not a select-able API in Google's (OAuth) Developer Console.
I'm going to interpret this question as "how do I programmatically access Google Voice now that the ClientLogin service is no longer available?"
My app uses the unofficial google-voice-java API, and that API also broke in June 2015 when the ClientLogin service stopped working.
I was able to get it working again by having it log in using a different method, but not with OAuth 2.0. See the comment thread for issue 60 (see comments 6 and 9 in particular) for an outline of the solution.

Swift iOS Twitter API Fails

I am trying to load some twitter feeds of a user on Swift iOS App. On twitter Documentation, I found the API is:
https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi&count=2
which returns:
{"errors":[{"message":"Bad Authentication data","code":215}]}
Older Rest API did not require. Newer API requires authentication.
Requires authentication? Yes
How do I get that working? Any tutorials would be even sweeter!
Before marking this question duplicate please bear in mind that I have done a good search and none of the answers answered my questions because a lot them point to older Rest APIs.
Take a look at Twitter Fabric http://dev.twitter.com/fabric which is a free SDK (compatible with Swift) that provides easy authentication via either guest or user login. Sample app written in Swift at https://github.com/twitterdev/cannonball-ios
If you would prefer to use raw REST calls against the API, follow the OAuth details in our dev documentation https://dev.twitter.com/oauth
In settings of your simulator go to accounts -> Twitter, and login there in actual twitter account. As you try to login, it doesn't know what user to use, so you need to specify it.

ios 8 app facebook integration recommendation

I am developing an app for iOS8 (also back versions compatible) . I need to Log-in using Facebook and get photos and album information of the user. I was looking around the web and found terminology like "Parse Framework" and "Graph API"
Is Graph API the old way and Parse Framework the recommended latest way ?
do they both apply for photos retrieval from Facebook account ? I also need to use instagram Log-in and photos for the same app does that change the choice between using Graph or Parse ?.
I think you are totally unaware about the terminologies Parse & Graph api.
Is Graph API the old way and Parse Framework the recommended latest way ?
No
Parse is a baas(backend as service). Its a backend service that you will used to store your app data such as images,user data or anything something like sqlite database but its own cloud.
Graph api is facebook api service that you will used to get the graph data such as posts, friends etc. Even if you have used the parse as the backend you have to use the graph api to get the posts from fb.

Resources