Skip to content
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

Open
keithfraley opened this issue Nov 29, 2019 · 5 comments
Open

Python example to pull active events? #9

keithfraley opened this issue Nov 29, 2019 · 5 comments

Comments

@keithfraley
Copy link

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?

@Jacquesduplessis
Copy link

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

@keithfraley
Copy link
Author

keithfraley commented Dec 2, 2019 via email

@keithfraley
Copy link
Author

keithfraley commented Dec 2, 2019 via email

@Jacquesduplessis
Copy link

Hi Keith,

Integrate only works with the new 64 bit ID's and no legacy (32bit) ID will work.
Step 1. Get the org ID you have access to
GET /api/organisationgroups

Step 2. Use the Org ID retrieved from step one and use on end point below.
GET /api/libraryevents/organisation/{organisationId}

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
Jacques

@Jacquesduplessis
Copy link

Hi Keith,

You need to get in touch with FMSI support team that you query can be logged via the correct channel.

Thank you
Jacques

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants