🗝️GET - Passcodes Generate

my_api.get.passcodes_generate()

Generates a multiple passcodes to the limit set in pararmeters.

Parameters

  • service_provider_id (str): Service Provider ID where Group is located.

  • group_id (str): Group ID to generate passcodes for.

  • limit (int, optional): Number of passwords api will return. Defaults to 10.

Returns

  • Dict: Multiple passwords generated according to the groups rules.

How To Use:

from odins_spear import api

my_api= api.Api(base_url="https://base_url/api/vx", username="john.smith", password="ODIN_INSTANCE_1")
my_api.authenticate()

my_api.get.passcodes_generate(
    "serviceProviderId",
    "groupID",
    limit =10
)

Example Returned Data of SIP Passwords (Formatted)

{
  "passcodes": [
    "52184637",
    "73586940",
    "27648093",
    "14608397",
    "35810742",
    "64907832",
    "47692380",
    "69307485",
    "95013267",
    "78210935"
  ]
}

Last updated