Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi Community, I Want To Get The List Of Available Worker-Queues In My Pyhton Api. Based On The Sdk Documentation I Cannot Find A Implemented Way Expect Using The Rest-Api. I Struggle To Get The Rest-Api Up An Running. I'Ve Got My Api_Secret And Access_Key

Hi community,
I want to get the list of available worker-queues in my pyhton API. Based on the SDK documentation I cannot find a implemented way expect using the REST-API.
I struggle to get the REST-API up an running. I've got my API_SECRET and ACCESS_KEY and those are working fine with the SDK but I cannot get the queues from the REST-API.

When I call the code below I get a HTTP 401 (not authorized)

url = f"{base_url}/"
headers = {"Authorization": f"Bearer {access_key}:{secret_key}"}
st.text(headers)
response = requests.post('
', headers=headers)

if response.status_code == 200:
    st.text("Request was successful")
    st.text("Response content:")
    st.text(response.text)
else:
    st.text(f"Request failed with status code {response.status_code}")

Any help is appreciated.

Thanks in advance!

  
  
Posted one year ago
Votes Newest

Answers 2


Thank you @<1523701070390366208:profile|CostlyOstrich36> !

  
  
Posted one year ago

Hi @<1632913959445073920:profile|IratePigeon23> , please look at the following thread - None

That is a nice example for using the API. After you handle the login issues, you can use the web UI as a reference for the API (use dev tools - F12 to see what the UI sends to the backend).

Let me know if this helps 🙂

  
  
Posted one year ago
789 Views
2 Answers
one year ago
one year ago
Tags
Similar posts