-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.go
30 lines (26 loc) · 942 Bytes
/
model.go
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
package alchemyapi
// GetTextOptions is the set of parameters that can be used on the URLGetText endpoint.
// For more details see http://www.alchemyapi.com/api/text/urls.html#text.
type GetTextOptions struct {
UseMetadata int
ExtractLinks int
}
// GetTextResponse is the resource representing response from URLGetText endpoint.
// For more details see http://www.alchemyapi.com/api/text/urls.html#text.
type GetTextResponse struct {
Status string
URL string
Text string
}
// GetTitleOptions is the set of parameters that can be used on the URLGetTitle endpoint.
// For more details see http://www.alchemyapi.com/api/text/urls.html#title.
type GetTitleOptions struct {
UseMetadata int
}
// GetTitleResponse is the resource representing response from URLGetTitle endpoint.
// For more details see http://www.alchemyapi.com/api/text/urls.html#title.
type GetTitleResponse struct {
Status string
URL string
Title string
}