Open pl22740 opened 2 years ago
I'm new to Webhooks, APIs, etc... but I couldn't successfully connect to Breeze and get a list of people until I put in my request Header a KEY of "api-key" and VALUE of "my api key here".
Yep. I was able to do my query (all records that match a person's last name) using the Python wrapper as a guide. I also have it working in my mobile app written in Flutter (Dart). If anyone would like to see the code, just let me know.
Yep. I was able to do my query (all records that match a person's last name) using the Python wrapper as a guide. I also have it working in my mobile app written in Flutter (Dart). If anyone would like to see the code, just let me know.
i would like to see the code i am trying to figure out how to connect using api but dont know anything about python . thanks
Here you go:
import requests
from pprint import pprint
url = 'https://
headers = ({ 'Content-Type': 'application/json', 'Api-Key' : api_key})
payload = ({ 'details' : '1',
# Breeze database, click on People, click SHOW MORE FILTER OPTIONS,
# Click on tic mark next to "Name" and look at the URL bar to see
# what the last name field ID looks like
'filter_json' : '{"<Profile name from URL>":"smith"}'
# Next line is to limit the number of results returned
#'limit' : '10',
})
resp = requests.get(url, verify=True, params=payload, headers=headers)
print (resp.status_code)
raw = resp.json()
for person in raw : print (person['first_name'],person['last_name'])
#pprint(person)
I am a new user to Breeze and want to use the API (if possible) to list people that match a certain last name. I want to do this in my mobile app, written in Flutter (Dart), so my thought is to have the app send a single https command to Breeze to obtain the JSON results, but I can't figure out how to add the API_KEY to the https string. Can anybody give me the syntax to do this? I've done http programming like this before connecting to a Canvas database and the string was "https://
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)