Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Kashif Memon
    @iamkashz
    it would be nice if we can get geolocation data for users events in the export as that should be comprehensive. Do let me know an update on it. Thanks
    miketongkisi
    @miketongkisi
    You are welcome. Sure, you can also check back when major updates rolls out.
    Kashif Memon
    @iamkashz
    whats the difference between CREATED_AT and UPDATED_AT - in context of viewing event logs
    Both of those fields ALWAYS show the same time. Do provide information / references.
    Kashif Memon
    @iamkashz

    HTTP Error: 403 Client Error: Forbidden for url: https://api.kisi.io/event_exports
    {'code': '000403', 'error': 'Access denied.', 'message': 'Access denied.', 'reason': 'Access denied.'}

    in the doc you shared api is located at : https://api.kisi.io but in the doc (https://kisiapi.docs.apiary.io) the api is located at: https://api.getkisi.com - Tried both, but event_exports is FAILING with access_denied !

    miketongkisi
    @miketongkisi
    https://kisiapi.docs.apiary.io/# is our old document and domain used to host our document.
    miketongkisi
    @miketongkisi
    Access denied can happen for many reason. Wrong header, wrong key, wrong body structure.
    https://api.kisi.io/event_exports
    you need place id parameter.
    https://api.kisi.io/event_exports?limit=10&place_id={place_id}
    Kashif Memon
    @iamkashz
    aah the doc doesnt specify the place_id in the request section . but just saw it in the body section. Cool i think it'll work now thanks
    Kashif Memon
    @iamkashz
    what if i want to specify a from date from which I want logs ? or since last request or something!
    or all since account creation? - any keyword for that?
    miketongkisi
    @miketongkisi
    It only takes the 100 latest events as of right now. You cannot specific dates yet. You can also use our webhook integration to catch events and record it to process it outside of our system.
    Kashif Memon
    @iamkashz
    So using the webhooks is working perfectly. So there is an issue as our webhook listener is using security configuation that requires a special header to be set with the value of a token (HEC in splunk) and then all goes well. Do advise if there is a way for KISI support team to help us in that!
    Kashif Memon
    @iamkashz
    ?
    miketongkisi
    @miketongkisi
    We do not support editing of the header for webhook yet. I would suggest using using parameter on the url for security and forward it.
    Kashif Memon
    @iamkashz
    @miketongkisi how do i use parameter on URL for security!?
    Could you elaborate? - as the kisi integration webpage for a door / lock, only asks for the URL?
    Do you want me to just hardcode the param in the URL itself ? - not a good approach!
    Kashif Memon
    @iamkashz
    ^ ?
    miketongkisi
    @miketongkisi

    Very much like putting an API key on the param instead of the header. API key should never be in the parameter because there are more chances of it getting cached somewhere. If you are building an endpoint only to receive data from this webhook, then it is unlikely people can externally can get your key for accepting the data from Kisi webhook.

    ex. https://your.endpoint.io?secret=0hfH6Xw84QGHwPGQL4SVeP2UC7QMU6BE

    Kashif Memon
    @iamkashz
    Will try that out! THanks
    Dinesh
    @C3ypt0C3yto_twitter
    hi guys
    Dinesh
    @C3ypt0C3yto_twitter
    Kashif: I want to the same of seeing all events, do u have a working api query?
    Kashif Memon
    @iamkashz
    @C3ypt0C3yto_twitter, I am working with siem integration. So instead of requesting every event regularly (too expensive, plus during when the kisi events will not be that active, its not use wasting event fetch), hence I chose to work with Webhooks feature and customized it using URL based apiToken with sending KISI publishing all events to my AWS Bucket and me extracting from s3 through the use of s3 checkpoints.
    Dinesh
    @C3ypt0C3yto_twitter
    @iamkashz : cool
    Dinesh
    @C3ypt0C3yto_twitter
    curl -X POST -H 'Content-type: application/json' --data 'text":"Hello, World!"}' https://hooks.slack.com/services/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 this results in the message posted as hello world to slack
    but when i do the same thing with webhook as slack, i don't get anything
    via kisi webhook
    how can i modify this to send msg to slack please?
    miketongkisi
    @miketongkisi
    @C3ypt0C3yto_twitter The body is not the accepted format for slack. You will need to have your own endpoint to format it into slack webhook acceptable format, then forward it to slack.
    Dinesh
    @C3ypt0C3yto_twitter
    mike: thanks, i am trying to get the lamda on aws setup. is there anyway i can do this without aws? free converter maybe?
    IFTT?
    miketongkisi
    @miketongkisi
    miketongkisi
    @miketongkisi
    You do not need to have aws. You just need a server that reads from our webhook then send it to your slack url endpoint. I don't think there is a free service that will do that.
    depending on the language you use all you need to do is look up on how to read the body of a request.
    convert it to json and take that information and logic you want to add then send it to slack.
    Dinesh
    @C3ypt0C3yto_twitter
    thanks mike
    Dinesh
    @C3ypt0C3yto_twitter
    mike: what are the webhook sending hosts from kisi? at the moment i have 3.81.14.168
    18.234.35.39
    34.207.131.6
    107.23.180.207
    miketongkisi
    @miketongkisi
    The IP is not static.
    Kevin T.
    @kevintc
    Hello guys, is there a way to init the kisi-client (js) with the api token ?

    Actually I'm doing this:

    const kisiClient = new Kisi()
    await kisiClient.setLoginSecret(process.env.myKisiTokenStoredHere)

    Is there a way to pass the token inside the constructor?

    miketongkisi
    @miketongkisi
    Is there a reason why you need it in the constructor?
    also await is not needed as there is nothing to wait for.
    Kevin T.
    @kevintc
    Is there any other way to set the loginSecret ? (it's just a linter issue as the setLoginSecret is not known from the IDE)
    miketongkisi
    @miketongkisi
    I would suggest using // eslint-disable-line {lint error} or import the lib so setLoginSecret is known by the IDE.
    Otherwise you will have to edit the client code
    Kevin T.
    @kevintc
    Hello
    Kevin T.
    @kevintc
    I can't share a lock to a specific place using POST /shares
    Kevin T.
    @kevintc
    It does not work if I have access to 2 places:
    If I only specify the lock_id, I get a 403: "Access denied" (even with an account accessing only 1 place)
    If I specify "apply_to_place": true with a place_id, it shares the entire place
    If I specify "apply_to_place": false with a place_id, I get 422: "errors > groups > can't be blank"
    Carl
    @ce07c3
    @kevintc we don't support new lock shares
    Please create a group with one lock, and share that group :)
    Kevin T.
    @kevintc
    Should I have as many groups as I have locks ? (and add members in each groups?)