КОМЕНТАРІ •

  • @ggnot2
    @ggnot2 8 місяців тому +1

    Hi everyone! Hadley Wickham suggested some awesome improvements to the code featured in this video. Please use the code on GitHub rather than what's in the video :) Link to the code that should be used: github.com/melissavanbussel/UA-cam-Tutorials/blob/main/httr2/httr2_examples.R
    The changes are:
    - Using the req_url_path_append() function rather than pasting things together with the paste0() function
    - Define the access tokens as system environment variables and access them using Sys.getenv() rather than including the tokens directly in the script (for instructions on how to set your Open AI API key as a system environment variable, check this video here at timestamp 30:34 - ua-cam.com/video/tqfOgWr0PAY/v-deo.htmlsi=GEERk28_m4tyDXab&t=1835)
    - Using the req_auth_bearer_token() function to greatly simplify working with access tokens

  • @rexevan6714
    @rexevan6714 Місяць тому

    Thank you for making this. I was done learning httr and just now discovered httr2

  • @rappa753
    @rappa753 9 місяців тому +1

    Great job, Melissa! Calling APIs is hard at the beginning and I feel like there are not many R resources about that.

  • @transportation-talk
    @transportation-talk 9 місяців тому

    Thanks a lot for taking the time to create this tutorial. I wish I had this tutorial before digging into the Firebase API and using it in R.

  • @home1250
    @home1250 9 місяців тому

    Great work, thank you for sharing this tutorial! I've been wanting to learn more about working with APIs using R. Your explanations and instructions made it easy to follow along. Looking forward to trying it out myself. Keep up the great work!

    • @ggnot2
      @ggnot2 8 місяців тому

      Thanks for the support and kind words!

  • @grzegorzklaczak3365
    @grzegorzklaczak3365 8 місяців тому

    Thank you! Great work, helped a lot

  • @AngelFelizF
    @AngelFelizF 9 місяців тому

    This is great tutorial, thanks for sharing

  • @apshinyn
    @apshinyn 8 місяців тому

    Very nice intro - any plans to cover more complex auth interactions such as PKCE?

    • @apshinyn
      @apshinyn 8 місяців тому

      For future reference, here is the way I figured out how to make code challenges for PKCE!
      make_challenge %
      charToRaw() %>%
      openssl::sha256() %>%
      openssl::base64_encode() %>%
      str_replace_all("=", "") %>%
      str_replace_all("\\+", "-") %>%
      str_replace_all("/", "_")
      }

  • @meme31382
    @meme31382 9 місяців тому

    beautiful

  • @DaarShnik
    @DaarShnik 9 місяців тому

    You could use a method called request append to append url path... You don't get paste function to do it.

    • @ggnot2
      @ggnot2 8 місяців тому

      Thanks! Code has been updated to avoid paste0 :)