-
Notifications
You must be signed in to change notification settings - Fork 15
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python example to pull active events? #9
Comments
Hi Keith, Thank you for making contact, I would like to assist. Who do you normally deal with at MiX? Would like to direct you to our logging system but need to know what region you deal with? Kind regards |
I get "No JSON Object could be decoded"
…On Mon, Dec 2, 2019 at 1:53 AM Ludwig ***@***.***> wrote:
Change this:
thislist = *{"EntityIds": [-1, 1, 2]}*
(...)
GetLiveEventsByGroupUrlResponse = requests.post(GetLiveEventsByGroupUrl,
*json*= thislist, headers = {"Content-Type": "application/json",
"Authorization":BearerToken })
Greetings
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AA6LCVFLQTTR27I4ZDG6PCLQWS5IFA5CNFSM4JTCVDC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFSSIBA#issuecomment-560276484>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6LCVFQ4JE5RTNUMD3C4F3QWS5IFANCNFSM4JTCVDCQ>
.
|
I am working on a project in Oman.
…On Mon, Dec 2, 2019 at 4:05 AM Jacquesduplessis ***@***.***> wrote:
Hi Keith,
Thank you for making contact, I would like to assist. Who do you normally
deal with at MiX?
Would like to direct you to our logging system but need to know what
region you deal with?
Kind regards
Jacques
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AA6LCVHDOI65XIEAT4W5K63QWTMWDA5CNFSM4JTCVDC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFS6DEA#issuecomment-560325008>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6LCVBUCRCBI2GOBTK3FLTQWTMWDANCNFSM4JTCVDCQ>
.
|
Hi Keith, Integrate only works with the new 64 bit ID's and no legacy (32bit) ID will work. Step 2. Use the Org ID retrieved from step one and use on end point below. What are you busy developing as I will be able to direct you at the correct end-point to use for your use case. Kind regards |
Hi Keith, You need to get in touch with FMSI support team that you query can be logged via the correct channel. Thank you |
I have followed all the documentation but I am convinced that there is an issue with pulling activeevents via python.
When I try and pass in my array for eventID filters like this
thislist = [-1, 1, 2]
GetLiveEventsByGroupUrl = ApiUrl + "/api/activeevents/group/" + str(groupid) + "/latest/100"
GetLiveEventsByGroupUrlResponse = requests.post(GetLiveEventsByGroupUrl, data = thislist, headers = {"Content-Type": "application/json", "accept":"application/json", "Authorization":BearerToken })
#GetLiveEventsByGroupUrlResponse = requests.post(GetLiveEventsByGroupUrl, data = {"eventIds":[1,3,7,-3,-1]}, headers = {"Content-Type": "application/json", "accept":"application/json", "Authorization":BearerToken })
LiveEvents = json.loads(GetLiveEventsByGroupUrlResponse.content)
It alwys errors out. can you help?
The text was updated successfully, but these errors were encountered: