-
Notifications
You must be signed in to change notification settings - Fork 0
/
calendar.clj
125 lines (100 loc) · 5.86 KB
/
calendar.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
(ns eve-api-client.api.calendar
(:require [eve-api-client.core :refer [call-api check-required-params with-collection-format]])
(:import (java.io File)))
(defn get-characters-character-id-calendar-with-http-info
"List calendar event summaries
Get 50 event summaries from the calendar. If no from_event ID is given, the resource will return the next 50 chronological event summaries from now. If a from_event ID is specified, it will return the next 50 chronological event summaries from after that event
---
This route is cached for up to 5 seconds"
([character-id ] (get-characters-character-id-calendar-with-http-info character-id nil))
([character-id {:keys [datasource from-event if-none-match token ]}]
(check-required-params character-id)
(call-api "/v1/characters/{character_id}/calendar/" :get
{:path-params {"character_id" character-id }
:header-params {"If-None-Match" if-none-match }
:query-params {"datasource" datasource "from_event" from-event "token" token }
:form-params {}
:content-types ["application/json"]
:accepts ["application/json"]
:auth-names ["evesso"]})))
(defn get-characters-character-id-calendar
"List calendar event summaries
Get 50 event summaries from the calendar. If no from_event ID is given, the resource will return the next 50 chronological event summaries from now. If a from_event ID is specified, it will return the next 50 chronological event summaries from after that event
---
This route is cached for up to 5 seconds"
([character-id ] (get-characters-character-id-calendar character-id nil))
([character-id optional-params]
(:data (get-characters-character-id-calendar-with-http-info character-id optional-params))))
(defn get-characters-character-id-calendar-event-id-with-http-info
"Get an event
Get all the information for a specific event
---
This route is cached for up to 5 seconds"
([character-id event-id ] (get-characters-character-id-calendar-event-id-with-http-info character-id event-id nil))
([character-id event-id {:keys [datasource if-none-match token ]}]
(check-required-params character-id event-id)
(call-api "/v3/characters/{character_id}/calendar/{event_id}/" :get
{:path-params {"character_id" character-id "event_id" event-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-calendar-event-id
"Get an event
Get all the information for a specific event
---
This route is cached for up to 5 seconds"
([character-id event-id ] (get-characters-character-id-calendar-event-id character-id event-id nil))
([character-id event-id optional-params]
(:data (get-characters-character-id-calendar-event-id-with-http-info character-id event-id optional-params))))
(defn get-characters-character-id-calendar-event-id-attendees-with-http-info
"Get attendees
Get all invited attendees for a given event
---
This route is cached for up to 600 seconds"
([character-id event-id ] (get-characters-character-id-calendar-event-id-attendees-with-http-info character-id event-id nil))
([character-id event-id {:keys [datasource if-none-match token ]}]
(check-required-params character-id event-id)
(call-api "/v1/characters/{character_id}/calendar/{event_id}/attendees/" :get
{:path-params {"character_id" character-id "event_id" event-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-calendar-event-id-attendees
"Get attendees
Get all invited attendees for a given event
---
This route is cached for up to 600 seconds"
([character-id event-id ] (get-characters-character-id-calendar-event-id-attendees character-id event-id nil))
([character-id event-id optional-params]
(:data (get-characters-character-id-calendar-event-id-attendees-with-http-info character-id event-id optional-params))))
(defn put-characters-character-id-calendar-event-id-with-http-info
"Respond to an event
Set your response status to an event
---
[Diff of the upcoming changes](https://esi.evetech.net/diff/latest/dev/#PUT-/characters/{character_id}/calendar/{event_id}/)"
([character-id event-id response ] (put-characters-character-id-calendar-event-id-with-http-info character-id event-id response nil))
([character-id event-id response {:keys [datasource token ]}]
(check-required-params character-id event-id response)
(call-api "/v3/characters/{character_id}/calendar/{event_id}/" :put
{:path-params {"character_id" character-id "event_id" event-id }
:header-params {}
:query-params {"datasource" datasource "token" token }
:form-params {}
:body-param response
:content-types ["application/json"]
:accepts ["application/json"]
:auth-names ["evesso"]})))
(defn put-characters-character-id-calendar-event-id
"Respond to an event
Set your response status to an event
---
[Diff of the upcoming changes](https://esi.evetech.net/diff/latest/dev/#PUT-/characters/{character_id}/calendar/{event_id}/)"
([character-id event-id response ] (put-characters-character-id-calendar-event-id character-id event-id response nil))
([character-id event-id response optional-params]
(:data (put-characters-character-id-calendar-event-id-with-http-info character-id event-id response optional-params))))