Тёмный

How to work with APIs using R (httr2 package tutorial) 

Melissa Van Bussel (ggnot2)
Подписаться 4,2 тыс.
Просмотров 4,7 тыс.
50% 1

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@ggnot2
@ggnot2 7 месяцев назад
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/RU-vid-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 - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tqfOgWr0PAY.htmlsi=GEERk28_m4tyDXab&t=1835) - Using the req_auth_bearer_token() function to greatly simplify working with access tokens
@transportation-talk
@transportation-talk 8 месяцев назад
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 8 месяцев назад
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 7 месяцев назад
Thanks for the support and kind words!
@rappa753
@rappa753 8 месяцев назад
Great job, Melissa! Calling APIs is hard at the beginning and I feel like there are not many R resources about that.
@grzegorzklaczak3365
@grzegorzklaczak3365 7 месяцев назад
Thank you! Great work, helped a lot
@AngelFelizF
@AngelFelizF 8 месяцев назад
This is great tutorial, thanks for sharing
@meme31382
@meme31382 8 месяцев назад
beautiful
@apshinyn
@apshinyn 7 месяцев назад
Very nice intro - any plans to cover more complex auth interactions such as PKCE?
@apshinyn
@apshinyn 7 месяцев назад
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("/", "_") }
@DaarShnik
@DaarShnik 8 месяцев назад
You could use a method called request append to append url path... You don't get paste function to do it.
@ggnot2
@ggnot2 7 месяцев назад
Thanks! Code has been updated to avoid paste0 :)
Далее
iPhone 16 для НИЩЕБРОДОВ!
00:51
Просмотров 1,6 млн
Эконом такси в твоем городе 😂
00:59
RIP RStudio 🪦 Positron has my 💕
6:22
Просмотров 8 тыс.
GPTs vs Assistants API - which one is best for you?
13:09
Efficient R
37:14
Просмотров 4,4 тыс.
How to purrr
17:46
Просмотров 10 тыс.
Tutorial on RTutor.ai: Chat with your data via AI
8:53
iPhone 16 для НИЩЕБРОДОВ!
00:51
Просмотров 1,6 млн