Project

wixanswers

0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby interface to the WixAnswers API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
 Project Readme

wixanswers

A Ruby Wrapper to the WIX Answers REST API

Introduction

The WIX Answers REST API enables you to use code to interact with the Wix Answers back-end. You can use the API to create webhooks that interact with the Wix Answers front and back-ends, or create a new front-end app that works with the Wix Answers back-end. You can also use the API to get information about your customers and their Wix Answers history (Source: Wix Answers Developers Overview).

This library serves as a Ruby wrapper for the API, in order to enable easy interfacing with WIX Answers REST API's raw payload.

Features

  • Schema-based Objects for Tickets, Users and other API objects
  • Schema validation
  • Enumerations and enumerations validation

Usage Examples

Instantiating a new Ticket directly

ticket = WixAnswers:Models::Ticket.new(<ticket_payload>)

Instantiating a new Ticket via the #from_payload method

ticket = WixAnswers::Models::Ticket.from_payload(<ticket_payload>)

Validating Enumeration

WixAnswers::Enumerations::Channel.validate!(payload[:channel])

Supported Ruby Versions

  • >= 2.3

Installation

gem install wixanswers

Or via Gemfile:

gem 'wixanswers'