Git Product home page Git Product logo

customize-notifications-golang-sdk's Introduction

app logo Customize Notifications Golang SDK

Go

SDK

Golang Python

Development Document

If you use other development languages, please refer to the development documentation

Development Document

Description

"My Notice" is an application that allows users to send custom messages to themselves. Developers, operation and maintenance personnel or startup teams can send custom push messages to mobile phones.

customize notification app home view

customize notification app message detail view

Scenes to be used

After you integrate and call the interface in the code, a customized message will be pushed to this application. Common usage scenarios are such as:

  • An error occurred during program operation.
  • Customer order processing.
  • Server CPU usage is too high.
  • Concerned content updates.

Message type

  1. primary General message(primary)
  2. success Success message(success)
  3. info Information messages(info)
  4. warning Warning message(warning)
  5. fail Fail message(fail)

Application

iOS Store

Run environment

  • Go 1.5+

Install

  • go get github.com/renjunok/customize-notifications-golang-sdk
  • import "github.com/renjunok/customize-notifications-golang-sdk/message"

Use method

  • iOS users install application in app store
  • After opening the app, click the menu in the upper left corner to get the configuration information, ID and Secret
  • Execute the following code in the notification message you need to customize
	m, err := message.NewMessage("test title", "test content", 0, "developer group")
	if err != nil {
		// handler err
		return
	}
	err = m.Send("your id", "your secret")
	if err != nil {
		// handler err
		return
	}

Precautions

  • title, content, msgType fields are required, group field optional
  • The maximum number of title characters is 100, the maximum content is 4000, and the maximum group is 20
  • The msgType types are 0 primary, 1 success, 2 info, 3 warning, 4 fail
  • The api call rate is at most three times within 1 minute, and requests beyond the call will not be processed

customize-notifications-golang-sdk's People

Contributors

renjunok avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.