-
Notifications
You must be signed in to change notification settings - Fork 0
/
planetary_interaction.clj
130 lines (103 loc) · 5.55 KB
/
planetary_interaction.clj
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
(ns eve-api-client.api.planetary-interaction
(:require [eve-api-client.core :refer [call-api check-required-params with-collection-format]])
(:import (java.io File)))
(defn get-characters-character-id-planets-with-http-info
"Get colonies
Returns a list of all planetary colonies owned by a character.
---
This route is cached for up to 600 seconds"
([character-id ] (get-characters-character-id-planets-with-http-info character-id nil))
([character-id {:keys [datasource if-none-match token ]}]
(check-required-params character-id)
(call-api "/v1/characters/{character_id}/planets/" :get
{:path-params {"character_id" character-id }
:header-params {"If-None-Match" if-none-match }
:query-params {"datasource" datasource "token" token }
:form-params {}
:content-types ["application/json"]
:accepts ["application/json"]
:auth-names ["evesso"]})))
(defn get-characters-character-id-planets
"Get colonies
Returns a list of all planetary colonies owned by a character.
---
This route is cached for up to 600 seconds"
([character-id ] (get-characters-character-id-planets character-id nil))
([character-id optional-params]
(:data (get-characters-character-id-planets-with-http-info character-id optional-params))))
(defn get-characters-character-id-planets-planet-id-with-http-info
"Get colony layout
Returns full details on the layout of a single planetary colony, including links, pins and routes. Note: Planetary information is only recalculated when the colony is viewed through the client. Information will not update until this criteria is met.
---
This route is cached for up to 600 seconds"
([character-id planet-id ] (get-characters-character-id-planets-planet-id-with-http-info character-id planet-id nil))
([character-id planet-id {:keys [datasource if-none-match token ]}]
(check-required-params character-id planet-id)
(call-api "/v3/characters/{character_id}/planets/{planet_id}/" :get
{:path-params {"character_id" character-id "planet_id" planet-id }
:header-params {"If-None-Match" if-none-match }
:query-params {"datasource" datasource "token" token }
:form-params {}
:content-types ["application/json"]
:accepts ["application/json"]
:auth-names ["evesso"]})))
(defn get-characters-character-id-planets-planet-id
"Get colony layout
Returns full details on the layout of a single planetary colony, including links, pins and routes. Note: Planetary information is only recalculated when the colony is viewed through the client. Information will not update until this criteria is met.
---
This route is cached for up to 600 seconds"
([character-id planet-id ] (get-characters-character-id-planets-planet-id character-id planet-id nil))
([character-id planet-id optional-params]
(:data (get-characters-character-id-planets-planet-id-with-http-info character-id planet-id optional-params))))
(defn get-corporations-corporation-id-customs-offices-with-http-info
"List corporation customs offices
List customs offices owned by a corporation
---
This route is cached for up to 3600 seconds
---
Requires one of the following EVE corporation role(s): Director"
([corporation-id ] (get-corporations-corporation-id-customs-offices-with-http-info corporation-id nil))
([corporation-id {:keys [datasource if-none-match page token ]}]
(check-required-params corporation-id)
(call-api "/v1/corporations/{corporation_id}/customs_offices/" :get
{:path-params {"corporation_id" corporation-id }
:header-params {"If-None-Match" if-none-match }
:query-params {"datasource" datasource "page" page "token" token }
:form-params {}
:content-types ["application/json"]
:accepts ["application/json"]
:auth-names ["evesso"]})))
(defn get-corporations-corporation-id-customs-offices
"List corporation customs offices
List customs offices owned by a corporation
---
This route is cached for up to 3600 seconds
---
Requires one of the following EVE corporation role(s): Director"
([corporation-id ] (get-corporations-corporation-id-customs-offices corporation-id nil))
([corporation-id optional-params]
(:data (get-corporations-corporation-id-customs-offices-with-http-info corporation-id optional-params))))
(defn get-universe-schematics-schematic-id-with-http-info
"Get schematic information
Get information on a planetary factory schematic
---
This route is cached for up to 3600 seconds"
([schematic-id ] (get-universe-schematics-schematic-id-with-http-info schematic-id nil))
([schematic-id {:keys [datasource if-none-match ]}]
(check-required-params schematic-id)
(call-api "/v1/universe/schematics/{schematic_id}/" :get
{:path-params {"schematic_id" schematic-id }
:header-params {"If-None-Match" if-none-match }
:query-params {"datasource" datasource }
:form-params {}
:content-types ["application/json"]
:accepts ["application/json"]
:auth-names []})))
(defn get-universe-schematics-schematic-id
"Get schematic information
Get information on a planetary factory schematic
---
This route is cached for up to 3600 seconds"
([schematic-id ] (get-universe-schematics-schematic-id schematic-id nil))
([schematic-id optional-params]
(:data (get-universe-schematics-schematic-id-with-http-info schematic-id optional-params))))