• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

List your commands

API
2
3
661
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    Russ
    last edited by Russ Dec 15, 2022, 5:00 AM Dec 15, 2022, 1:18 AM

    List your commands

    import requests
    
    
    url = "https://www.triggercmd.com/api/command/list"
    
    # For authorization
    headers = {
        "Authorization": "Bearer <This is your token from the Instructions page. >"
    }
    
    r = requests.post(url, headers=headers, json=json)
    

    Russell VanderMey

    M 1 Reply Last reply Jun 17, 2023, 11:03 PM Reply Quote 0
    • M
      manuel @Russ
      last edited by Jun 17, 2023, 11:03 PM

      @Russ no puedo iniciar sesión porque me piden el token , accedo a instrucciones para comandos token pero no funcionan. que puedo hacer. si me puedes enviar el token de activación por mensaje mejor.

      R 1 Reply Last reply Jun 18, 2023, 11:57 PM Reply Quote 0
      • R
        Russ @manuel
        last edited by Jun 18, 2023, 11:57 PM

        @manuel, I translated that as, "I can't log in because they ask me for the token , I access instructions for token commands but it doesn't work. what can i do If you can send me the activation token by message better."

        You replied to a post about using the API to list commands, but if you're trying to login to the iOS app or the PWA at https://app.triggercmd.com, maybe you need a Pair Code instead of the token? If so you can get that by clicking your name in the upper-right, and clicking Pair like this:

        d30013d5-5906-449b-8b61-a4b93e06a5ca-image.png

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • First post
          Last post