Created
February 14, 2016 00:21
-
-
Save accraze/bd159d2358ed5f020f4b to your computer and use it in GitHub Desktop.
Discogs API Haskell GET Request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Control.Lens | |
import qualified Data.ByteString.Lazy as BL | |
import Network.Wreq | |
main :: IO () | |
main = do | |
response <- get "https://api.discogs.com/releases/249504" | |
print $ BL.take 1000 (response ^. responseBody) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment