Azure Notification Hub Rest API with iOS Swift 401 Error from device - azure-notificationhub

I'm unable to generate a valid Authentication Token using iOS Swift and keep getting a 401 error when trying to send a push notification directly from a iPhone.
The documentation on Microsoft Azure's website is incomplete and written in Objective C. After translating to Swift, some parts of it call old functions that have been deprecated.

I figured it out. The Objective C to Swift translator wasn't working as expected so I just coded it in Objective C and everything works, although the documentation on the Azure website needs to be updated to iOS10.

Related

Upload multiple images to FTP server in iOS

I'm developing an application in swift 4. In it, I want to upload multiple images to FTP server. I have tried to do with https://github.com/Constantine-Fry/rebekka but could not build getting error saying
Xcode 9 does not support building or migrating Swift 2.x targets.
Also tried with https://gist.github.com/Nirma/fb9991be776107d17fdcd6ed2aa02876 . But some of the APIs are deprecated. Apple sample project is in objective C. Can anybody please help me to go forward in this case?
I've implemented FilesProvider library to abstract FTP/FTPS, WebDAV, Dropbox and OneDrive and providing a high level, FileManager like API to deal with these.
You can use FilesProvider library to deal with FTP. It doesn't use deprecated CFWriteStreamCreateWithFTPURL API and implements FTP protocol from scratch.
Please read Readme before using. You can see a sample implementation for iOS here.

PHP REST Service Consumption in iOS 8 Swift

I've seen RESTKit and Mantle in Github. They are designed in Objective-C. Objective-C is OK with the Swift. But I like to know about a framework provided by Apple or any third-party written in Swift itself for REST Service(GET/POST/PUT/DELETE) consumption.
Take a look into Agent -- Minimalistic Swift HTTP request agent for iOS and OS X https://github.com/hallas/agent
Inside there is a Agent.swift https://github.com/hallas/agent/blob/master/Agent/Agent.swift where you can find how GET/POST/PUT/DELETE works
Also take a look on Alamofire from creators of AFNetwork https://github.com/Alamofire/Alamofire

iOS Google Drive SDK Application-owned Account

I need to read a set of spreadsheets from Google Drive in an iPad app, and these are stored in an account made specifically for the app. So, I stumbled on this https://developers.google.com/drive/service-accounts which makes total sense. But how am I supposed to use this in iOS? When using a regular account, I couldn't find a method that allows me to set the refresh token mentioned in that documentation. The service account mechanism looks even more confusing/tricky and there are no code samples in Objective-C. Has anybody got a clue?
Thanks in advance.

Basecamp API integration in ios

I need to implement Basecamp API for iphone app. I searched on google and got a Git hub link: https://github.com/37signals/bcx-api
It say that the API is rest based but I am not able to understand how to call this api. I also not able to figure out how to get Login using this API. This api contains .md files.
Please any one can help me how to call this API in iOS sdk?
Thanks
See that - https://github.com/ScottPetit/BasecampKit. I didn't try it but it's only one realization where you're not obliged to mess directly with basecamp api.
Some time ago I started to do some bascamp integration in my app but don't found any sinple solution
and decided to make own basecamp ios sdk. I'll share it on github when it will be done.

iPhone : Problem while integrating wordnik API in my app

I have implemented wordnik API in my sample app.
Its working great in sample.
But when I try to integrate it with my app. It is unable to set its Client config.
What should I need to do ?
Please paste the error message, and indicate whether or not you're using the Wordnik UI components or just the data SDK. That'll make it easier to troubleshoot.