FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
webex-java-sdk/src/main/java/com/ciscospark/Spark.java at master · MytiLab/webex-java-sdk · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
MytiLab
/
webex-java-sdk
Public
forked from
webex/webex-java-sdk
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
webex-java-sdk
/
src
/
main
/
java
/
com
/
ciscospark
/
Spark.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
84 lines (70 loc) · 2.41 KB
Breadcrumbs
webex-java-sdk
/
src
/
main
/
java
/
com
/
ciscospark
/
Spark.java
Copy path
File metadata and controls
84 lines (70 loc) · 2.41 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
package
com
.
ciscospark
;
import
java
.
net
.
URI
;
import
java
.
util
.
logging
.
Logger
;
/**
* Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
*/
public
abstract
class
Spark
{
public
abstract
RequestBuilder
<
Room
>
rooms
();
public
abstract
RequestBuilder
<
Membership
>
memberships
();
public
abstract
RequestBuilder
<
Message
>
messages
();
public
abstract
RequestBuilder
<
Person
>
people
();
public
abstract
RequestBuilder
<
Team
>
teams
();
public
abstract
RequestBuilder
<
TeamMembership
>
teamMemberships
();
public
abstract
RequestBuilder
<
Webhook
>
webhooks
();
public
abstract
RequestBuilder
<
Organization
>
organizations
();
public
abstract
RequestBuilder
<
License
>
licenses
();
public
abstract
RequestBuilder
<
Role
>
roles
();
public
abstract
RequestBuilder
<
Content
>
contents
();
/**
* Created on 11/24/15.
*/
public
static
class
Builder
{
private
URI
redirectUri
;
private
String
authCode
;
private
String
accessToken
;
private
String
refreshToken
;
private
String
clientId
;
private
String
clientSecret
;
private
Logger
logger
;
private
URI
baseUrl
=
URI
.
create
(
"https://api.ciscospark.com/v1"
);
public
Builder
baseUrl
(
URI
uri
) {
this
.
baseUrl
=
uri
;
return
this
;
}
public
Builder
redirectUri
(
URI
uri
) {
this
.
redirectUri
=
uri
;
return
this
;
}
public
Builder
authCode
(
String
code
) {
this
.
authCode
=
code
;
return
this
;
}
public
Builder
accessToken
(
String
accessToken
) {
this
.
accessToken
=
accessToken
;
return
this
;
}
public
Builder
refreshToken
(
String
refreshToken
) {
this
.
refreshToken
=
refreshToken
;
return
this
;
}
public
Builder
clientId
(
String
clientId
) {
this
.
clientId
=
clientId
;
return
this
;
}
public
Builder
clientSecret
(
String
clientSecret
) {
this
.
clientSecret
=
clientSecret
;
return
this
;
}
public
Builder
logger
(
Logger
logger
) {
this
.
logger
=
logger
;
return
this
;
}
public
Spark
build
() {
return
new
SparkImpl
(
new
Client
(
baseUrl
,
authCode
,
redirectUri
,
accessToken
,
refreshToken
,
clientId
,
clientSecret
,
logger
));
}
}
public
static
Builder
builder
() {
return
new
Builder
();
}
}
Back
|
FazBrowse Home
|
New Git URL