Skip to content

Instantly share code, notes, and snippets.

View carterjackson's full-sized avatar

Carter Jackson carterjackson

View GitHub Profile
@carterjackson
carterjackson / ImportNPS.rb
Last active April 3, 2023 17:31
UserVoice API NPS Import Tutorial
require 'net/http'
require 'net/https'
require 'json'
# Change 'feedback' to the name of your UserVoice subdomain (leaving the quotes)
subdomain = "feedback"
# Change "xxxe8ae9c6a3c039" to the bearer token you received in step 1 (leaving the quotes)
token = "xxxe8ae9c6a3c039"
# Put your data into a json object with fields matching this example