Skip to content

Fetch xids from conversation ID directly #85

@patcon

Description

@patcon

😬

I'm not sure how long this will be available, as it's pretty sensitive information to be available from public data like a conversation ID, but for now it's available

Example Usage

  1. Vote in a polis conversation that's managed via xid passed into embedded iframe.
  2. Download the csv as per below (this CSV maps participant IDs to the xid they used)
    •  # See: https://pol.is/2demo
       curl https://pol.is/api/v3/conversationUuid?conversation_id=2demo
       # {"conversation_uuid":"9a68ac97-7972-4726-be06-647aa65eaf8d"}
       
       curl https://pol.is/api/v3/xid/9a68ac97-7972-4726-be06-647aa65eaf8d
       # downloads CSV
      
  3. in typeform, download your results data. It will also have the xid present, allowing you to connect participant vote data to typeform results

This is more direct than the existing method, and doesn't require keeping a list of known xids:
https://github.com/polis-community/red-dwarf/blob/main/docs/notebooks/map-xids.ipynb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions