-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarketo-mapi.yaml
143 lines (143 loc) · 3.78 KB
/
marketo-mapi.yaml
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
swagger: '2.0'
info:
description: Marketo Rest API
version: '1.0'
title: Marketo Rest API
termsOfService: https://www.marketo.com/company/legal/
contact:
name: Marketo Developer Relations
url: http://developers.marketo.com
email: [email protected]
license:
name: API License Agreement
url: http://developers.marketo.com/api-license/
host: localhost:8080
basePath: /
schemes:
- https
tags:
- name: Identity
description: Identity Controller
paths:
/identity/oauth/token:
get:
tags:
- Identity
summary: Identity
description: >
Retrieve an access token from Marketo. Calls to this endpoint are not
counted towards API call limit.
operationId: identityUsingGET
consumes:
- application/json
produces:
- application/json
parameters:
- name: client_id
in: query
description: Client ID from Admin > Integration > Launchpoint menu.
type: string
format: string
required: true
- name: client_secret
in: query
description: Client Secret from Admin > Integration > Launchpoint menu.
type: string
format: string
required: true
- name: grant_type
in: query
description: Grant type.
type: string
format: string
enum:
- client_credentials
required: true
responses:
'200':
description: OK
schema:
$ref: '#/definitions/ResponseOfIdentity'
post:
tags:
- Identity
summary: Identity
description: >
Retrieve an access token from Marketo. Calls to this endpoint are not
counted towards API call limit.
operationId: identityUsingPOST
consumes:
- application/json
produces:
- application/json
parameters:
- name: client_id
in: query
description: Client ID from Admin > Integration > Launchpoint menu.
type: string
format: string
required: true
- name: client_secret
in: query
description: Client Secret from Admin > Integration > Launchpoint menu.
type: string
format: string
required: true
- name: grant_type
in: query
description: Grant type.
type: string
format: string
enum:
- client_credentials
required: true
responses:
'200':
description: OK
schema:
$ref: '#/definitions/ResponseOfIdentity'
definitions:
IdentityRequest:
type: object
required:
- client_id
- client_secret
- grant_type
properties:
client_id:
type: string
description: Client ID from Admin > Integration > Launchpoint menu
client_secret:
type: string
description: Client Secret from Admin > Integration > Launchpoint menu
grant_type:
type: string
description: Grant type
enum:
- client_credentials
ResponseOfIdentity:
type: object
required:
- access_token
- scope
- expires_in
- token_type
properties:
access_token:
description: >-
The token that you pass with subsequent calls to authenticate with the
target instance
type: string
scope:
description: >-
The owning API-only user of the custom service that was used to
authenticate
type: string
expires_in:
description: Remaining lifespan of the current token in seconds
type: integer
token_type:
description: The OAuth authentication method
type: string
enum:
- bearer