reamaze-go

module
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: MIT

README

reamaze-go: Re:amaze Golang API Client

testing Go Report Card codecov License godoc GitHub release

Overview

This repository houses a Golang package designed to serve as a client for interacting with the Re:amaze REST API. Re:amaze is providing businesses with a unified platform for customer communication, support, and engagement. With features such as real-time messaging, automated responses, and comprehensive reporting, Re:amaze empowers organizations to deliver exceptional customer experiences.

Re:amaze exposes a robust API that this client encapsulates and simplifies for seamless integration into Golang applications.

Endpoint Coverage

reamaze-go covers all https://www.reamaze.com/api REST API methods:

  • ARTICLES: Retrieving Articles, Get Article, Creating Articles, Updating Articles
  • CHANNELS: Retrieving Channels, Retrieving Channels
  • CONTACTS: Retrieving Contacts, Create Contacts, Update Contacts, Get Contact Identities, Create Identities
  • CONTACT NOTES: Retrieving Notes, Create Note, Update a note, Delete a note
  • CONVERSATIONS: Retrieving Conversations, Get Conversation, Creating Conversations, Updating Conversations
  • MESSAGES: Retrieving Messages, Creating Messages
  • REPORTS: Volume, Response Time, Staff, Tags, Channel Summary
  • RESPONSE TEMPLATES: Retrieving Response Templates, Get Response Templates, Creating Response Templates, Updating Response Templates
  • STAFF: Retrieving Staff, Create Staff User
  • STATUS PAGE: Retrieving Incidents, Get Incident, Create Incident, Update Incident, Retrieving Systems

Getting Started

Prerequisites

Before getting started, ensure you have the following:

  • Re:amaze Account: You need a Re:amaze account with a valid email address.

  • API Token: Generate an API token from your Re:amaze account settings. This token will be used for authentication when making API requests.

  • Re:amaze Brand: Associate your Re:amaze account with the relevant brand. The brand serves as a context for API operations, and you must specify it when initializing the client.

Installation

To incorporate the Re:amaze Golang API client into your project, use the following go get command:

go get -u github.com/meant4/reamaze-go/reamaze

Example Usage

Retrieving Articles
package main

import (
	"fmt"
	"github.com/meant4/reamaze-go/reamaze"
)


func main() {
    // Replace these values with your Re:amaze credentials
    email := "your-email@example.com"
    apiToken := "your-api-token"
    brand := "your-brand"

    // Initialize Re:amaze client
    reamazeClient, err := reamaze.NewClient(email, apiToken, brand)
    if err != nil {
        log.Println(err)
    }

    // Example: Get a list of articles
    articles, err := reamazeClient.GetArticles()
    if err != nil {
        fmt.Println("Error:", err)
        return
    }

    // Process the list of articles as needed
    fmt.Println("Articles:", articles)
}

Refer to the documentation for detailed information on each endpoint and usage examples.

Also please visit godoc for all available methods and types in this package

Contribution Guidelines

We welcome contributions, bug reports, and feature requests. Fork and make a Pull Request, or create an Issue if you see any problem.

Sponsorship

The development of this package was sponsored by Meant4.com Software House

License

This project is licensed under the MIT License.

Thank you for considering and contributing to the Re:amaze Golang API client. We look forward to your involvement in enhancing its functionality and reliability.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL