Skip to content

update list command RTR #188

Answered by jshcodes
t0uxe asked this question in Q&A
Jul 5, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @t0uxe!

I was able to recreate your issue, and believe the problem is related to your body payload.
(I changed base_command and added command_string)

Here's my test example:

import json
from falconpy.api_complete import APIHarness as Uber

with open("config.json", "r") as cred_file:
    config = json.loads(cred_file.read())
creds = {
    "client_id": config["falcon_client_id"],
    "client_secret": config["falcon_client_secret"]
}

falcon = Uber(creds=creds)

device_id = "DEVICE_ID_GOES_HERE"

session = falcon.command("RTR_InitSession", body={"device_id": device_id})
if session["body"]["errors"]:
    print(session["body"]["errors"][0]["message"])
else:
    session_id = session["body"]["…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@t0uxe
Comment options

Answer selected by jshcodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
RTR Real Time Response issues and questions uber Questions related to Uber Class usage
2 participants