I would like to extract data from MARVEL DEVELOPER by API code and analyze it (using R).
I got the following URL on the MARVEL website: http://gateway.marvel.com:80/v1/public/characters?apikey=f389fcb49ad574e10ca570867f4bfa43
I used the httr package to collect data:
install.packages("httr") library(httr) > url <- GET("http://gateway.marvel.com:80/v1/public/characters?orderBy=name&limit=100&apikey=f389fcb49ad574e10ca570867f4bfa43") > content(url) $code [1] "MissingParameter" $message [1] "You must provide a hash."
I want to extract all this data in R. What should I do / read?
Thanks.
You must specify ts (timestamp) and a hash parameter. Hash (as per documentation ) = md5 (ts + privateKey + publicKey)
You can calculate md5 with:
library(digest) hash <- digest(paste0(ts, privateKey, publicKey), algo="md5")
Source: https://habr.com/ru/post/1214241/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1214236/minimum-number-of-swap-operations-to-sort-an-array-if-swapping-of-two-equal-size-sub-arrays-is-possible&usg=ALkJrhgpT76ouHttzZvGU-vmYN-ycU2XywAsmack login error on Android 5.0 and above - androidHow to extract a fragment of a video from a video file recorded by ffmpeg in real time - youtubeHow to remove Google Cloud SDK in Windows - windowsJava - SSLServerSocket with only TLS - javagcc to detect string literal concatenation? - cAre Grails Services not Transactional? - serviceUsing jQuery Datatables with non-table layout - jqueryhow to set standard beans init method using annotations in spring 4? - javaError installing Docker - dockerAll Articles