How to write your first API call in Swift 📱 (Free Tutorial, Beginner Level)

Поделиться
HTML-код
  • Опубликовано: 13 окт 2024
  • #iOS #swift #softwaredeveloper #iosdeveloper
    In this video, I'll show you how to write your first API call in Swift. An API (Application Programming Interface) is a way for different software systems to communicate with each other over the internet. By making an API call, you can request data or functionality from another system, and receive a response back.
    To make an API call in Swift, you'll need to use a networking library such as URLSession. We'll show you how to use URLSession to make an HTTP GET request to an API endpoint, and how to handle the response that you receive back. By the end of this video, you'll have a first understanding of how to make API calls in Swift.
    Thank you for watching this video 🙌
    ➜ Website: www.swiftwithv...
    ➜ Twitter: / v_pradeilles
    ➜ GitHub: github.com/vin...
    ➜ LinkedIn: / vincentpradeilles

Комментарии • 14

  • @v_pradeilles
    @v_pradeilles  Год назад +10

    Did you find this explanation useful? Are there other topics you'd like me to cover? Let me know in the comments 🚀

    • @fredsonsilva0007
      @fredsonsilva0007 Год назад

      Really helpful. I think it would be a good idea you make a video integrating chatGPT in a SwiftUI App. 😉

  • @obelix8477
    @obelix8477 Год назад +3

    New format is brilliant. Well done. It's great to see you jot down commands, then explain other conditions (such as throwing errors, or being asynchronous) and watching the new code appear just at the moment you mention it in your dialog.
    That really drives home the idea that you code as you think.

    • @v_pradeilles
      @v_pradeilles  Год назад

      Thank you for the detailed feedback! I'm so glad to hear you're enjoying this format ☺️

  • @RohitPatil_Tech
    @RohitPatil_Tech Год назад

    Hi Vincent,
    The explanation is pretty useful! Thanks for creating the video. 😄
    I was about to suggest to create a video on async/await but I saw that you already have a video on it. Will check that next!

  • @tittuc1480
    @tittuc1480 Год назад +1

    hello bro awesome video, Can you please cover all scenario get ,post put delete , patch in swift

  • @JonathanAylward
    @JonathanAylward 10 месяцев назад

    Clear and valuable.

  • @NathanBudd
    @NathanBudd 11 месяцев назад +1

    This was very succinctly explained! First video of yours that I've come across.
    var subscribers = 12700
    subscribers += 1

  • @bufelo
    @bufelo Год назад +1

    Thank you for the tutorial, next time could you show yourself calling it to view the results?

    • @seanephram
      @seanephram 10 месяцев назад

      append this to your code
      Task {
      do {
      let movies = try await fetchMoviesFromAPI()
      for movie in movies {
      print("Title: \(movie.title), Overview: \(movie.overview)")
      }
      } catch {
      print("Error fetching movies: \(error):)
      }
      }

  • @NathanBudd
    @NathanBudd 11 месяцев назад

    I'm intrigued as to how you securely store the API key value in a SwiftUI app.

  • @bmayer710
    @bmayer710 Год назад +1

    Hey Vincent, it would be a pleasure if you build a list/detail view of your movie app or any app with list/detail view. :) Its what i am really interested in.
    I really like your videos, cheers and thank you Vincent.

    • @v_pradeilles
      @v_pradeilles  Год назад

      That's a great idea, doing a livestream about how to implement the most common UI patterns in SwiftUI!

  • @alexlittle7553
    @alexlittle7553 5 месяцев назад

    Nice and verbose thank you