/
UrlFetchApp.purs
61 lines (32 loc) · 3.99 KB
/
UrlFetchApp.purs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
module Control.Google.Apps.UrlFetch.UrlFetchApp (
fetchWithString,
fetchWithStringObjectStringObjectStringStringBooleanBooleanBooleanBooleanBoolean,
fetchAll,
getRequestWithString,
getRequestWithStringObjectStringObjectStringStringBooleanBooleanBooleanBooleanBoolean
) where
import Effect (Effect)
import Foreign (Foreign)
import Data.Google.Apps.UrlFetch.HttpResponse as UrlFetchHttpResponse
import Data.Google.Apps.UrlFetch.UrlFetchApp as UrlFetchUrlFetchApp
foreign import fetchWithStringImpl :: String -> UrlFetchUrlFetchApp.UrlFetchApp -> Effect UrlFetchHttpResponse.HttpResponse
-- | Makes a request to fetch a URL.
fetchWithString :: String -> UrlFetchUrlFetchApp.UrlFetchApp -> Effect UrlFetchHttpResponse.HttpResponse
fetchWithString url p' = fetchWithStringImpl url p'
foreign import fetchWithStringObjectStringObjectStringStringBooleanBooleanBooleanBooleanBooleanImpl :: String -> Foreign -> String -> Foreign -> String -> String -> Boolean -> Boolean -> Boolean -> Boolean -> Boolean -> UrlFetchUrlFetchApp.UrlFetchApp -> Effect UrlFetchHttpResponse.HttpResponse
-- | Makes a request to fetch a URL using optional advanced parameters.
fetchWithStringObjectStringObjectStringStringBooleanBooleanBooleanBooleanBoolean :: String -> Foreign -> String -> Foreign -> String -> String -> Boolean -> Boolean -> Boolean -> Boolean -> Boolean -> UrlFetchUrlFetchApp.UrlFetchApp -> Effect UrlFetchHttpResponse.HttpResponse
fetchWithStringObjectStringObjectStringStringBooleanBooleanBooleanBooleanBoolean url params contentType headers method payload useIntranet validateHttpsCertificates followRedirects muteHttpExceptions escaping p' = fetchWithStringObjectStringObjectStringStringBooleanBooleanBooleanBooleanBooleanImpl url params contentType headers method payload useIntranet validateHttpsCertificates followRedirects muteHttpExceptions escaping p'
foreign import fetchAllImpl :: (Array Foreign) -> String -> String -> Foreign -> String -> String -> Boolean -> Boolean -> Boolean -> Boolean -> Boolean -> UrlFetchUrlFetchApp.UrlFetchApp -> Effect UrlFetchHttpResponse.HttpResponse
-- | Makes multiple requests to fetch multiple URLs using optional advanced
-- | parameters.
fetchAll :: (Array Foreign) -> String -> String -> Foreign -> String -> String -> Boolean -> Boolean -> Boolean -> Boolean -> Boolean -> UrlFetchUrlFetchApp.UrlFetchApp -> Effect UrlFetchHttpResponse.HttpResponse
fetchAll requests url contentType headers method payload useIntranet validateHttpsCertificates followRedirects muteHttpExceptions escaping p' = fetchAllImpl requests url contentType headers method payload useIntranet validateHttpsCertificates followRedirects muteHttpExceptions escaping p'
foreign import getRequestWithStringImpl :: String -> UrlFetchUrlFetchApp.UrlFetchApp -> Effect Foreign
-- | Returns the request that is made if the operation was invoked.
getRequestWithString :: String -> UrlFetchUrlFetchApp.UrlFetchApp -> Effect Foreign
getRequestWithString url p' = getRequestWithStringImpl url p'
foreign import getRequestWithStringObjectStringObjectStringStringBooleanBooleanBooleanBooleanBooleanImpl :: String -> Foreign -> String -> Foreign -> String -> String -> Boolean -> Boolean -> Boolean -> Boolean -> Boolean -> UrlFetchUrlFetchApp.UrlFetchApp -> Effect Foreign
-- | Returns the request that is made if the operation were invoked.
getRequestWithStringObjectStringObjectStringStringBooleanBooleanBooleanBooleanBoolean :: String -> Foreign -> String -> Foreign -> String -> String -> Boolean -> Boolean -> Boolean -> Boolean -> Boolean -> UrlFetchUrlFetchApp.UrlFetchApp -> Effect Foreign
getRequestWithStringObjectStringObjectStringStringBooleanBooleanBooleanBooleanBoolean url params contentType headers method payload useIntranet validateHttpsCertificates followRedirects muteHttpExceptions escaping p' = getRequestWithStringObjectStringObjectStringStringBooleanBooleanBooleanBooleanBooleanImpl url params contentType headers method payload useIntranet validateHttpsCertificates followRedirects muteHttpExceptions escaping p'