|
240 | 240 | "body": "{\n \"streamId\": 1,\n \"claimableAmount\": \"5000\",\n \"actionable\": true,\n \"calculatedAt\": \"2024-02-21T14:30:00.000Z\",\n \"cached\": false\n}" |
241 | 241 | } |
242 | 242 | ] |
| 243 | + }, |
| 244 | + { |
| 245 | + "name": "Get user stream summary", |
| 246 | + "request": { |
| 247 | + "method": "GET", |
| 248 | + "header": [], |
| 249 | + "url": { |
| 250 | + "raw": "{{baseUrl}}/v1/streams/summary/{{senderPublicKey}}", |
| 251 | + "host": ["{{baseUrl}}"], |
| 252 | + "path": ["v1", "streams", "summary", "{{senderPublicKey}}"] |
| 253 | + }, |
| 254 | + "description": "Get an aggregated stream summary for a Stellar public key." |
| 255 | + }, |
| 256 | + "response": [] |
| 257 | + }, |
| 258 | + { |
| 259 | + "name": "Pause stream", |
| 260 | + "request": { |
| 261 | + "method": "POST", |
| 262 | + "header": [ |
| 263 | + { "key": "Authorization", "value": "Bearer {{authToken}}" } |
| 264 | + ], |
| 265 | + "url": { |
| 266 | + "raw": "{{baseUrl}}/v1/streams/{{streamId}}/pause", |
| 267 | + "host": ["{{baseUrl}}"], |
| 268 | + "path": ["v1", "streams", "{{streamId}}", "pause"] |
| 269 | + }, |
| 270 | + "description": "Pause an active stream. Only the sender can pause their own stream." |
| 271 | + }, |
| 272 | + "response": [] |
| 273 | + }, |
| 274 | + { |
| 275 | + "name": "Resume stream", |
| 276 | + "request": { |
| 277 | + "method": "POST", |
| 278 | + "header": [ |
| 279 | + { "key": "Authorization", "value": "Bearer {{authToken}}" } |
| 280 | + ], |
| 281 | + "url": { |
| 282 | + "raw": "{{baseUrl}}/v1/streams/{{streamId}}/resume", |
| 283 | + "host": ["{{baseUrl}}"], |
| 284 | + "path": ["v1", "streams", "{{streamId}}", "resume"] |
| 285 | + }, |
| 286 | + "description": "Resume a paused stream. Only the sender can resume their own stream." |
| 287 | + }, |
| 288 | + "response": [] |
| 289 | + }, |
| 290 | + { |
| 291 | + "name": "Withdraw from stream", |
| 292 | + "request": { |
| 293 | + "method": "POST", |
| 294 | + "header": [ |
| 295 | + { "key": "Authorization", "value": "Bearer {{authToken}}" } |
| 296 | + ], |
| 297 | + "url": { |
| 298 | + "raw": "{{baseUrl}}/v1/streams/{{streamId}}/withdraw", |
| 299 | + "host": ["{{baseUrl}}"], |
| 300 | + "path": ["v1", "streams", "{{streamId}}", "withdraw"] |
| 301 | + }, |
| 302 | + "description": "Withdraw the currently claimable amount. Only the recipient can withdraw." |
| 303 | + }, |
| 304 | + "response": [] |
| 305 | + }, |
| 306 | + { |
| 307 | + "name": "Cancel stream", |
| 308 | + "request": { |
| 309 | + "method": "POST", |
| 310 | + "header": [ |
| 311 | + { "key": "Authorization", "value": "Bearer {{authToken}}" } |
| 312 | + ], |
| 313 | + "url": { |
| 314 | + "raw": "{{baseUrl}}/v1/streams/{{streamId}}/cancel", |
| 315 | + "host": ["{{baseUrl}}"], |
| 316 | + "path": ["v1", "streams", "{{streamId}}", "cancel"] |
| 317 | + }, |
| 318 | + "description": "Cancel an active stream. Only the original sender can cancel. Accrued tokens go to the recipient, remainder is refunded to the sender." |
| 319 | + }, |
| 320 | + "response": [] |
| 321 | + }, |
| 322 | + { |
| 323 | + "name": "Top up stream", |
| 324 | + "request": { |
| 325 | + "method": "POST", |
| 326 | + "header": [ |
| 327 | + { "key": "Content-Type", "value": "application/json" }, |
| 328 | + { "key": "Authorization", "value": "Bearer {{authToken}}" } |
| 329 | + ], |
| 330 | + "body": { |
| 331 | + "mode": "raw", |
| 332 | + "raw": "{\n \"amount\": \"5000\"\n}", |
| 333 | + "options": { "raw": { "language": "json" } } |
| 334 | + }, |
| 335 | + "url": { |
| 336 | + "raw": "{{baseUrl}}/v1/streams/{{streamId}}/top-up", |
| 337 | + "host": ["{{baseUrl}}"], |
| 338 | + "path": ["v1", "streams", "{{streamId}}", "top-up"] |
| 339 | + }, |
| 340 | + "description": "Add additional funds to an existing active stream. Only the original sender can top up." |
| 341 | + }, |
| 342 | + "response": [] |
243 | 343 | } |
244 | 344 | ] |
245 | 345 | }, |
|
0 commit comments