PHP REST Service Consumption in iOS 8 Swift - 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

Related

How could I combine Swift and SignalR?

So, I and a few other people are working a project where one part of the group is doing an Progressive Web App and the other part is doing an iOS app. Our back-end API is in .NET Core C#. We have decided to use SignalR so we can make the apps real-time.
I have done a small research on SignalR and there is not much available information on how to use it with Swift. Could any of you give any recommendations/suggestions on how should I proceed and how I can combine Swift and SignalR?

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.

How to invoke python scripts in iOS apps?

I want to make a native iOS app. It will be written mostly in Objective-C. But I need to invoke some python scripts. I have been researching on this for hours.
Questions:
1: I found this post(Running python/ruby script on iPhone? From the iPhone OS 4 Terms --- 3.3.1 — Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C may compile and directly link against the Documented APIs (e.g., Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited)). But it has been 2 year. Is there any changes to this agreement?
2: If it is possible to invoke a python script in an iOS app, can someone explain it to me with some code samples?
You will need to embed an interpreter into your app. I believe this is the thread you are looking for. Embedding Python in an iPhone app

Are there any other SIP implementations for iPhone besides Siphon?

I'm trying to build a SIP app for iPhone 4 (iOS 4.2).
Tried to use siphon, but no success (IOKit.framework is missing from the sdk, libg729a.a is also missing).
Is there any other way to implement SIP for iPhone?
Check out pjsip, and their iPhone Getting Started Guide. Siphon uses it too, but hasn't been updated for quite a while (which explains the build issues with the new SDKs.)
If what you are looking for is a pure SIP stack, then we are licensing a commercial one for customers: http://www.radvision.com/Products/Developer/VoIP-Developer-Tools/SIP-Developer-Suite/

WebSockets client for Objective-C (preferably iOS compatible)

Closest thing I've found is How to incorporate WebSockets into a Cocoa application, but the answers only pointed to an outdated library.
Does anyone know about a WebSockets library compatible with iOS 4.x?
I've also read about Pusherapp, and, as good as the service could be, I would prefer to use my own WebSockets server.
You can check out the UnitT Web Socket Client. It is intended for use in iOS apps using Objective-C. It works with both ws & wss.
I am the author and have been using it in some of my projects with success. Let me know if you run into any trouble and I will do what I can to help.
Found this post in a google search for iOS WebSockets and wanted to put an updated answer.
Anyways, Zimt and Unitt's client don't support the latest standard (at the time of writing this).
(disclaimer: author of SocketRocket)
We just released a new library that has no external dependencies, supports RFC 6455 completely, and works with iOS 4.x+.
It's called SocketRocket and can be found here
You could make a web application using one of several Cocoa-like libraries and then convert it to a native app using something like PhoneGap/Apache Cordova.
Cappuccino - Make webapps using Objective-J and Cocoa-like API.
WebSockets for Cappuccino
SproutCore - Apple's Cocoa for the web
Toth - a multi-user SproutCore library that uses WebSockets.
For the server side there are lots of options. Just search for "websockets server" on github.com.
I created a package for iOS/Objective-C and TLS taking into account the new iOS13 TLS restrictions. It works with a NodeJS TLS server how I use it. Hope it helps, feel free to contribute.
https://github.com/eamonwhiter73/IOSObjCWebSockets