@@ -12,7 +12,7 @@ Socket API v0 - https://docs.socket.dev/reference/introduction-to-socket-api
12
12
Initializing the module
13
13
-----------------------
14
14
15
- .. code-block ::
15
+ .. code-block :: python
16
16
17
17
from socketdev import socketdev
18
18
socket = socketdev(token = " REPLACE_ME" , timeout = 30 )
@@ -32,7 +32,7 @@ Retrieve the package information for a purl post
32
32
33
33
**Usage: **
34
34
35
- .. code-block ::
35
+ .. code-block :: python
36
36
37
37
from socketdev import socketdev
38
38
socket = socketdev(token = " REPLACE_ME" )
@@ -53,12 +53,12 @@ Retrieve the package information for a purl post
53
53
- **components (array{dict}) ** - The components list of packages urls
54
54
55
55
export.cdx_bom(org_slug, id, query_params)
56
- """""""""""""""""""""""""""""""""""""""""
56
+ """"""""""""""""""""""""""""""""""""""""""
57
57
Export a Socket SBOM as a CycloneDX SBOM
58
58
59
59
**Usage: **
60
60
61
- .. code-block ::
61
+ .. code-block :: python
62
62
63
63
from socketdev import socketdev
64
64
from socketdev.export import ExportQueryParams
@@ -82,12 +82,12 @@ Export a Socket SBOM as a CycloneDX SBOM
82
82
- **project_id (str) ** - Filter by project ID
83
83
84
84
export.spdx_bom(org_slug, id, query_params)
85
- """"""""""""""""""""""""""""""""""""""""""
85
+ """""""""""""""""""""""""""""""""""""""""""
86
86
Export a Socket SBOM as an SPDX SBOM
87
87
88
88
**Usage: **
89
89
90
- .. code-block ::
90
+ .. code-block :: python
91
91
92
92
from socketdev import socketdev
93
93
from socketdev.export import ExportQueryParams
@@ -116,7 +116,7 @@ Retrieve the Fullscans information for around Organization
116
116
117
117
**Usage: **
118
118
119
- .. code-block ::
119
+ .. code-block :: python
120
120
121
121
from socketdev import socketdev
122
122
socket = socketdev(token = " REPLACE_ME" )
@@ -132,7 +132,7 @@ Create a full scan from a set of package manifest files. Returns a full scan inc
132
132
133
133
**Usage: **
134
134
135
- .. code-block ::
135
+ .. code-block :: python
136
136
137
137
from socketdev import socketdev
138
138
socket = socketdev(token = " REPLACE_ME" )
@@ -190,7 +190,7 @@ Delete an existing full scan.
190
190
191
191
**Usage: **
192
192
193
- .. code-block ::
193
+ .. code-block :: python
194
194
195
195
from socketdev import socketdev
196
196
socket = socketdev(token = " REPLACE_ME" )
@@ -207,7 +207,7 @@ Stream a diff between two full scans. Returns a scan diff.
207
207
208
208
**Usage: **
209
209
210
- .. code-block ::
210
+ .. code-block :: python
211
211
212
212
from socketdev import socketdev
213
213
socket = socketdev(token = " REPLACE_ME" )
@@ -226,7 +226,7 @@ Stream all SBOM artifacts for a full scan.
226
226
227
227
**Usage: **
228
228
229
- .. code-block ::
229
+ .. code-block :: python
230
230
231
231
from socketdev import socketdev
232
232
socket = socketdev(token = " REPLACE_ME" )
@@ -243,7 +243,7 @@ Get metadata for a single full scan
243
243
244
244
**Usage: **
245
245
246
- .. code-block ::
246
+ .. code-block :: python
247
247
248
248
from socketdev import socketdev
249
249
socket = socketdev(token = " REPLACE_ME" )
@@ -260,7 +260,7 @@ Retrieve the dependencies for the organization associated with the API Key
260
260
261
261
**Usage: **
262
262
263
- .. code-block ::
263
+ .. code-block :: python
264
264
265
265
from socketdev import socketdev
266
266
socket = socketdev(token = " REPLACE_ME" )
@@ -277,7 +277,7 @@ Retrieve the dependencies for the organization associated with the API Key
277
277
278
278
**Usage: **
279
279
280
- .. code-block ::
280
+ .. code-block :: python
281
281
282
282
from socketdev import socketdev
283
283
socket = socketdev(token = " REPLACE_ME" )
@@ -301,7 +301,7 @@ Get a list of information about the tracked repositores
301
301
302
302
**Usage: **
303
303
304
- .. code-block ::
304
+ .. code-block :: python
305
305
306
306
from socketdev import socketdev
307
307
socket = socketdev(token = " REPLACE_ME" )
@@ -320,7 +320,7 @@ Create a new Socket Repository
320
320
321
321
**Usage: **
322
322
323
- .. code-block ::
323
+ .. code-block :: python
324
324
325
325
from socketdev import socketdev
326
326
socket = socketdev(token = " REPLACE_ME" )
@@ -350,7 +350,7 @@ Get a list of information about the tracked repositores
350
350
351
351
**Usage: **
352
352
353
- .. code-block ::
353
+ .. code-block :: python
354
354
355
355
from socketdev import socketdev
356
356
socket = socketdev(token = " REPLACE_ME" )
@@ -362,7 +362,7 @@ Update an existing Socket Repository
362
362
363
363
** Usage:**
364
364
365
- .. code-block ::
365
+ .. code- block:: python
366
366
367
367
from socketdev import socketdev
368
368
socket = socketdev(token = " REPLACE_ME" )
@@ -392,7 +392,7 @@ Delete a Socket Repository
392
392
393
393
** Usage:**
394
394
395
- .. code-block ::
395
+ .. code- block:: python
396
396
397
397
from socketdev import socketdev
398
398
socket = socketdev(token = " REPLACE_ME" )
@@ -409,7 +409,7 @@ Retrieve the Socket.dev org information
409
409
410
410
**Usage:**
411
411
412
- .. code-block ::
412
+ .. code-block:: python
413
413
414
414
from socketdev import socketdev
415
415
socket = socketdev(token="REPLACE_ME")
@@ -421,7 +421,7 @@ Retrieve the the current quota available for your API Key
421
421
422
422
** Usage:**
423
423
424
- .. code-block ::
424
+ .. code- block:: python
425
425
426
426
from socketdev import socketdev
427
427
socket = socketdev(token = " REPLACE_ME" )
@@ -433,7 +433,7 @@ Retrieve the Socket Organization Settings
433
433
434
434
** Usage:**
435
435
436
- .. code-block ::
436
+ .. code- block:: python
437
437
438
438
from socketdev import socketdev
439
439
socket = socketdev(token = " REPLACE_ME" )
@@ -445,7 +445,7 @@ Retrieve the supported types of manifest files for creating a report
445
445
446
446
** Usage:**
447
447
448
- .. code-block ::
448
+ .. code- block:: python
449
449
450
450
from socketdev import socketdev
451
451
socket = socketdev(token = " REPLACE_ME" )
@@ -457,7 +457,7 @@ Retrieve the list of all reports for the organization
457
457
458
458
** Usage:**
459
459
460
- .. code-block ::
460
+ .. code- block:: python
461
461
462
462
from socketdev import socketdev
463
463
socket = socketdev(token = " REPLACE_ME" )
@@ -473,7 +473,7 @@ Delete the specified report
473
473
474
474
** Usage:**
475
475
476
- .. code-block ::
476
+ .. code- block:: python
477
477
478
478
from socketdev import socketdev
479
479
socket = socketdev(token = " REPLACE_ME" )
@@ -489,7 +489,7 @@ Retrieve the information for a Project Health Report
489
489
490
490
**Usage:**
491
491
492
- .. code-block ::
492
+ .. code-block:: python
493
493
494
494
from socketdev import socketdev
495
495
socket = socketdev(token="REPLACE_ME")
@@ -505,7 +505,7 @@ Create a new project health report with the provided files
505
505
506
506
**Usage:**
507
507
508
- .. code-block ::
508
+ .. code-block:: python
509
509
510
510
from socketdev import socketdev
511
511
socket = socketdev(token="REPLACE_ME")
@@ -524,7 +524,7 @@ Get a list of information about the tracked repositores
524
524
525
525
**Usage:**
526
526
527
- .. code-block ::
527
+ .. code-block:: python
528
528
529
529
from socketdev import socketdev
530
530
socket = socketdev(token="REPLACE_ME")
@@ -536,7 +536,7 @@ Retrieve the information for a SBOM Report
536
536
537
537
**Usage:**
538
538
539
- .. code-block ::
539
+ .. code-block:: python
540
540
541
541
from socketdev import socketdev
542
542
socket = socketdev(token="REPLACE_ME")
@@ -548,7 +548,7 @@ Retrieve the Issues associated with a package and version.
548
548
549
549
** Usage:**
550
550
551
- .. code-block ::
551
+ .. code- block:: python
552
552
553
553
from socketdev import socketdev
554
554
socket = socketdev(token = " REPLACE_ME" )
@@ -565,7 +565,7 @@ Retrieve the Issues associated with a package and version.
565
565
566
566
**Usage:**
567
567
568
- .. code-block ::
568
+ .. code-block:: python
569
569
570
570
from socketdev import socketdev
571
571
socket = socketdev(token="REPLACE_ME")
0 commit comments