What's the simplest way to login to a website in swift 4 - swift

I have found other answers to this question on this site, but they seem to be either outdated or not especially descriptive. I am rather unexperienced in website access using swift so code would be greatly appreciated.
If I already have the username and password, how do I log into a website, for example this one, using swift code.
This other SA question seems to solve the problem well: How to log into web site using uiwebview with swift?

The way I am trying to solve this issue is by creating a new View Controller and adding a Web View on to it with access to the website. There's a post here Get HTML from WKWebview in Swift that could help as you are using Swift, but without any detailing of your code this issue can't be solved completely. My solution is a bit unorthodox and frankly "bad coding", but it should in theory function well and I have seen other responses which do it similarly. Also, I would revise your question and try to make it more formal/informative so everyone could have a better chance at helping you out.
Good Luck!
Edit: Reviewing a different response
The easiest way to do this as mentioned by one of your comments would be to see if the Website you are using has an API. I used a course on Udemy which explained their functionalities if you need one. I would recommend looking at the Cocoa Pod Alamofire and seeing if it could help you (perhaps in conjunction with SwiftyJSON).
Side note:
The reason why I am not using Alamofire for my project (one similar to yours) is because I could not find an accessible API.

Related

using "add fetch request" in Xcodes UI

It seems that there is a convenient way to use fetch controllers using the UI of xcdatamodel. I tried to use it but could not figure out how you actually implement the fetch once I have created it. anyone have some experience with this? A link? And most of all, is it possible to comfortably add this to a fetchResultsController?
Thanks!
EDIT: the answer here core data simple fetch request template in swift helped me use the tool but I feel like it is not a full answer. (Thank you shallowThought)

Fetch Wordpress Comments to iPhone

I am interested specifically in this functionality: I want to fetch all comments from a Worpress-based blog. I had a look at the Wordpress iOS application, but it looks too complex for me. Can some one please give me some hints in what would be the steps to achieve that. (I assume first I need to log-in somehow, and after that call a method using XML-RPC)
If possible, please don't suggest me the Wordpress iOS application, as it is a bit too complex for me.
Thank you.

Is it possible to implement facebook chat inside iframe in my own website?

I am trying to implement fb-chat from inside my website (in any possible way). Something like in ebuddy or meebo. In a previous question, I was suggested to use the facebook-chat from within an iframe. I searched for some documentation on how to do that but most of the results show how to make applications in a facebook.
Please somebody help me in this? I need some pointers or tutorials from websites which already implemented this. If not possible, please suggest another solution. I have been stuck in this for long time.
thanks a lot
Sabah
Yes it can be possible and you can implement this by using facebook provided code and its link is
http://developers.facebook.com/docs/chat/
kindly check this...

Beginners problem with WebMatrix Tags that don't work

Beginner, trying to learn to MS Web Matrix.
href, style, header, footer, tags don't seem to work.
Even copied and pasted coding from Web Dev 101 part 3 instructions on the "Learn About Web Matrix" site to be sure syntax was correct.
Is there some source for answers about Web Matrix programing problems.
Certainly no way to get anything through Micro Soft.
Every time I download the latest version of Web Matrix something gets fixed, but I'm weary of trying things that just don't work as shown in "Learning" documentation.
Is there some source for questions that a novice could direct such basic questions to, I'd sure like to know.
Thanks,
olearyevergreen
You can post questions here, or at the WebMatrix forum at www.asp.net.
When you do, make sure you are specific. Explain what your problem is exactly and post details of any error message you might get, and relevant source code.

creating an address textfield like in apple's sms-app

I'm writing an app, where I the user has to be able to select multiple adresses. I wanted to solve this in the same way, apple does when you send an SMS to someone.
You can enter text and it gets surrounded by a blue bubble for each adress selected.
I've already found facebook's tree20-kit, but I can't get it to work because of some linker error I cannot solve.
Is there any other kit out there, that's capable of doing this, or do you have any suggestions on how to create such a textField?
Yours,
Bujtor
Interesting. I don't know of any other open source solutions for this, and I think writing from scratch would be much more time consuming than trying to resolve the linker error. I would recommend spending a few hours and do the following:
Create a new empty application.
Download Three20 and follow the detailed instructions on GitHub for linking the framework.
You should be able to get this to link as many others, including myself, have been able to use this framework.
Sorry this isn't a straight forward answer to your question. I hope it was helpful just the same. Andrew.