@@ -45,3 +45,175 @@ Email address associated with the connected account that you want to get.
4545
4646[ connected\_ account] ( ./ )
4747
48+
49+ ---
50+
51+ ## Examples
52+
53+ ### Get a connected account
54+
55+ Specify the ` connected_account_id ` of the connected account that you want to get.
56+
57+ {% tabs %}
58+ {% tab title="JavaScript" %}
59+ #### Code
60+
61+ ``` javascript
62+ await seam .connectedAccounts .get ({
63+ connected_account_id: " 23e4eb21-6e93-48c4-a077-bf503246d47c" ,
64+ });
65+ ```
66+
67+ #### Output
68+
69+ ``` javascript
70+ [
71+ {
72+ " connected_account_id" : " 23e4eb21-6e93-48c4-a077-bf503246d47c" ,
73+ " created_at" : " 2022-08-24T10:38:05.128Z" ,
74+ " account_type" : " schlage"
75+ }
76+ ]
77+ ```
78+ {% endtab %}
79+
80+ {% tab title="Python" %}
81+ #### Code
82+
83+ ``` python
84+ seam.connected_accounts.get(connected_account_id = " 23e4eb21-6e93-48c4-a077-bf503246d47c" )
85+ ```
86+
87+ #### Output
88+
89+ ``` python
90+ [
91+ ConnectedAccount(
92+ connected_account_id = " 23e4eb21-6e93-48c4-a077-bf503246d47c" ,
93+ created_at = " 2022-08-24T10:38:05.128Z" ,
94+ account_type = " schlage" ,
95+ )
96+ ]
97+ ```
98+ {% endtab %}
99+
100+ {% tab title="Ruby" %}
101+ #### Code
102+
103+ ``` ruby
104+ seam.connected_accounts.get(connected_account_id: " 23e4eb21-6e93-48c4-a077-bf503246d47c" )
105+ ```
106+
107+ #### Output
108+
109+ ``` ruby
110+ [
111+ {
112+ " connected_account_id" => " 23e4eb21-6e93-48c4-a077-bf503246d47c" ,
113+ " created_at" => " 2022-08-24T10:38:05.128Z" ,
114+ " account_type" => " schlage" ,
115+ },
116+ ]
117+ ```
118+ {% endtab %}
119+
120+ {% tab title="PHP" %}
121+ #### Code
122+
123+ ``` php
124+ <?php
125+ $seam->connected_accounts->get(
126+ connected_account_id: "23e4eb21-6e93-48c4-a077-bf503246d47c"
127+ );
128+ ```
129+
130+ #### Output
131+
132+ ``` php
133+ <?php
134+ [
135+ [
136+ "connected_account_id" => "23e4eb21-6e93-48c4-a077-bf503246d47c",
137+ "created_at" => "2022-08-24T10:38:05.128Z",
138+ "account_type" => "schlage",
139+ ],
140+ ];
141+ ```
142+ {% endtab %}
143+
144+ {% tab title="Seam CLI" %}
145+ #### Code
146+
147+ ``` seam_cli
148+ seam connected-accounts get --connected_account_id "23e4eb21-6e93-48c4-a077-bf503246d47c"
149+ ```
150+
151+ #### Output
152+
153+ ``` seam_cli
154+ [
155+ {
156+ "connected_account_id": "23e4eb21-6e93-48c4-a077-bf503246d47c",
157+ "created_at": "2022-08-24T10:38:05.128Z",
158+ "account_type": "schlage"
159+ }
160+ ]
161+ ```
162+ {% endtab %}
163+
164+ {% tab title="Go" %}
165+ #### Code
166+
167+ ``` go
168+ package main
169+
170+ import api " github.com/seamapi/go"
171+
172+ func main () {
173+ client.ConnectedAccounts .Get (
174+ context.Background (),
175+ api.ConnectedAccountsGetRequest {
176+ ConnectedAccountId: api.String (" 23e4eb21-6e93-48c4-a077-bf503246d47c" ),
177+ },
178+ )
179+ }
180+ ```
181+
182+ #### Output
183+
184+ ``` go
185+ []api.ConnectedAccount {api.ConnectedAccount {ConnectedAccountId: " 23e4eb21-6e93-48c4-a077-bf503246d47c" , CreatedAt: " 2022-08-24T10:38:05.128Z" , AccountType: " schlage" }}
186+ ```
187+ {% endtab %}
188+
189+ {% tab title="cURL" %}
190+ #### Code
191+
192+ ``` curl
193+ curl --include --request POST "https://connect.getseam.com/connected_accounts/get" \
194+ --header "Authorization: Bearer $SEAM_API_KEY" \
195+ --json @- <<EOF
196+ {
197+ "connected_account_id": "23e4eb21-6e93-48c4-a077-bf503246d47c"
198+ }
199+ EOF
200+ ```
201+
202+ #### Output
203+
204+ ``` curl
205+ {
206+ "connected_account": [
207+ {
208+ "connected_account_id": "23e4eb21-6e93-48c4-a077-bf503246d47c",
209+ "created_at": "2022-08-24T10:38:05.128Z",
210+ "account_type": "schlage"
211+ }
212+ ]
213+ }
214+ ```
215+ {% endtab %}
216+
217+ {% endtabs %}
218+
219+
0 commit comments