Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brandonchinn178/http-api-data-qq
https://github.com/brandonchinn178/http-api-data-qq
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/brandonchinn178/http-api-data-qq
- Owner: brandonchinn178
- License: bsd-3-clause
- Created: 2021-12-18T01:49:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-26T17:47:20.000Z (11 months ago)
- Last Synced: 2024-03-25T22:36:04.742Z (8 months ago)
- Language: Haskell
- Homepage: https://hackage.haskell.org/package/http-api-data-qq
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# `http-api-data-qq`
[![CircleCI](https://img.shields.io/circleci/build/github/brandonchinn178/http-api-data-qq)](https://app.circleci.com/pipelines/github/brandonchinn178/http-api-data-qq)
[![Hackage](https://img.shields.io/hackage/v/http-api-data-qq)](https://hackage.haskell.org/package/http-api-data-qq)
[![Codecov](https://img.shields.io/codecov/c/gh/brandonchinn178/http-api-data-qq)](https://codecov.io/gh/brandonchinn178/http-api-data-qq)Quasiquoter for building URLs with strings interpolated using `ToHttpApiData` instances.
```hs
{-# LANGUAGE QuasiQuotes #-}import Network.HTTP.Client
import Web.HttpApiData.QQ (url)userId :: Int
userId = 100main :: IO ()
main = do
manager <- newManager defaultManagerSettings
request <- parseRequest [url|http://httpbin.org/anything/user/#{userId}|]
response <- httpLbs request manager
print response
```