mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package address
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewAddressService(token string) *AddressService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package answer
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewAnswerService(token string) *AnswerService {
|
||||
|
||||
2
clients/go/cache/cache.go
vendored
2
clients/go/cache/cache.go
vendored
@@ -1,7 +1,7 @@
|
||||
package cache
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewCacheService(token string) *CacheService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package crypto
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewCryptoService(token string) *CryptoService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package currency
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewCurrencyService(token string) *CurrencyService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewDbService(token string) *DbService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package email
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewEmailService(token string) *EmailService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package emoji
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewEmojiService(token string) *EmojiService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package evchargers
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewEvchargersService(token string) *EvchargersService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package event
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewEventService(token string) *EventService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package file
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewFileService(token string) *FileService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package forex
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewForexService(token string) *ForexService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package function
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewFunctionService(token string) *FunctionService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package geocoding
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewGeocodingService(token string) *GeocodingService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package gifs
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewGifsService(token string) *GifsService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package google
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewGoogleService(token string) *GoogleService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package helloworld
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewHelloworldService(token string) *HelloworldService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package holidays
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewHolidaysService(token string) *HolidaysService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package id
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewIdService(token string) *IdService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package image
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewImageService(token string) *ImageService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package ip
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewIpService(token string) *IpService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package location
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewLocationService(token string) *LocationService {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package m3o
|
||||
package services
|
||||
|
||||
import (
|
||||
"github.com/micro/services/clients/go/address"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package mq
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewMqService(token string) *MqService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package notes
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewNotesService(token string) *NotesService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package otp
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewOtpService(token string) *OtpService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package postcode
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewPostcodeService(token string) *PostcodeService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package prayer
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewPrayerService(token string) *PrayerService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package qr
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewQrService(token string) *QrService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package quran
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewQuranService(token string) *QuranService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package routing
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewRoutingService(token string) *RoutingService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package rss
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewRssService(token string) *RssService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package sentiment
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewSentimentService(token string) *SentimentService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package sms
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewSmsService(token string) *SmsService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package stock
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewStockService(token string) *StockService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package stream
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewStreamService(token string) *StreamService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package sunnah
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewSunnahService(token string) *SunnahService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package thumbnail
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewThumbnailService(token string) *ThumbnailService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package time
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewTimeService(token string) *TimeService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package twitter
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewTwitterService(token string) *TwitterService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package url
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewUrlService(token string) *UrlService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewUserService(token string) *UserService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package vehicle
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewVehicleService(token string) *VehicleService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package weather
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewWeatherService(token string) *WeatherService {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package youtube
|
||||
|
||||
import (
|
||||
"github.com/m3o/m3o-go/client"
|
||||
"github.com/micro/micro-go/client"
|
||||
)
|
||||
|
||||
func NewYoutubeService(token string) *YoutubeService {
|
||||
|
||||
@@ -78,5 +78,5 @@
|
||||
"prepare": "npm run build"
|
||||
},
|
||||
"types": "index.d.ts",
|
||||
"version": "1.0.624"
|
||||
"version": "1.0.629"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/address/LookupPostcode" \
|
||||
curl "http://localhost:8080/address/LookupPostcode" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/answer/Question" \
|
||||
curl "http://localhost:8080/answer/Question" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/cache/Decrement" \
|
||||
curl "http://localhost:8080/cache/Decrement" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
2
examples/cache/delete/curl/deleteAValue.sh
vendored
2
examples/cache/delete/curl/deleteAValue.sh
vendored
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/cache/Delete" \
|
||||
curl "http://localhost:8080/cache/Delete" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
2
examples/cache/get/curl/getAValue.sh
vendored
2
examples/cache/get/curl/getAValue.sh
vendored
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/cache/Get" \
|
||||
curl "http://localhost:8080/cache/Get" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/cache/Increment" \
|
||||
curl "http://localhost:8080/cache/Increment" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
2
examples/cache/set/curl/setAValue.sh
vendored
2
examples/cache/set/curl/setAValue.sh
vendored
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/cache/Set" \
|
||||
curl "http://localhost:8080/cache/Set" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/crypto/History" \
|
||||
curl "http://localhost:8080/crypto/History" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/crypto/News" \
|
||||
curl "http://localhost:8080/crypto/News" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/crypto/Price" \
|
||||
curl "http://localhost:8080/crypto/Price" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/crypto/Quote" \
|
||||
curl "http://localhost:8080/crypto/Quote" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/currency/Codes" \
|
||||
curl "http://localhost:8080/currency/Codes" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{}'
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/currency/Convert" \
|
||||
curl "http://localhost:8080/currency/Convert" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/currency/Convert" \
|
||||
curl "http://localhost:8080/currency/Convert" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/currency/History" \
|
||||
curl "http://localhost:8080/currency/History" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/currency/Rates" \
|
||||
curl "http://localhost:8080/currency/Rates" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/db/Count" \
|
||||
curl "http://localhost:8080/db/Count" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/db/Create" \
|
||||
curl "http://localhost:8080/db/Create" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -12,10 +12,10 @@ func CreateArecord() {
|
||||
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := dbService.Create(&db.CreateRequest{
|
||||
Record: map[string]interface{}{
|
||||
"age": 42,
|
||||
"isActive": true,
|
||||
"id": "1",
|
||||
"name": "Jane",
|
||||
"age": 42,
|
||||
},
|
||||
Table: "users",
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/db/Delete" \
|
||||
curl "http://localhost:8080/db/Delete" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/db/Read" \
|
||||
curl "http://localhost:8080/db/Read" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/db/Truncate" \
|
||||
curl "http://localhost:8080/db/Truncate" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/db/Update" \
|
||||
curl "http://localhost:8080/db/Update" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/email/Send" \
|
||||
curl "http://localhost:8080/email/Send" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/emoji/Find" \
|
||||
curl "http://localhost:8080/emoji/Find" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/emoji/Flag" \
|
||||
curl "http://localhost:8080/emoji/Flag" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/emoji/Print" \
|
||||
curl "http://localhost:8080/emoji/Print" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/emoji/Send" \
|
||||
curl "http://localhost:8080/emoji/Send" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/evchargers/ReferenceData" \
|
||||
curl "http://localhost:8080/evchargers/ReferenceData" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{}'
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/evchargers/Search" \
|
||||
curl "http://localhost:8080/evchargers/Search" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/evchargers/Search" \
|
||||
curl "http://localhost:8080/evchargers/Search" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/evchargers/Search" \
|
||||
curl "http://localhost:8080/evchargers/Search" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/event/Consume" \
|
||||
curl "http://localhost:8080/event/Consume" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/event/Publish" \
|
||||
curl "http://localhost:8080/event/Publish" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -12,9 +12,9 @@ func PublishAnEvent() {
|
||||
eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := eventService.Publish(&event.PublishRequest{
|
||||
Message: map[string]interface{}{
|
||||
"user": "john",
|
||||
"id": "1",
|
||||
"type": "signup",
|
||||
"user": "john",
|
||||
},
|
||||
Topic: "user",
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/event/Read" \
|
||||
curl "http://localhost:8080/event/Read" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/file/Delete" \
|
||||
curl "http://localhost:8080/file/Delete" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/file/List" \
|
||||
curl "http://localhost:8080/file/List" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/file/Read" \
|
||||
curl "http://localhost:8080/file/Read" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/file/Save" \
|
||||
curl "http://localhost:8080/file/Save" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/forex/History" \
|
||||
curl "http://localhost:8080/forex/History" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/forex/Price" \
|
||||
curl "http://localhost:8080/forex/Price" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/forex/Quote" \
|
||||
curl "http://localhost:8080/forex/Quote" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/function/Call" \
|
||||
curl "http://localhost:8080/function/Call" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/function/Delete" \
|
||||
curl "http://localhost:8080/function/Delete" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/function/Deploy" \
|
||||
curl "http://localhost:8080/function/Deploy" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/function/Describe" \
|
||||
curl "http://localhost:8080/function/Describe" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/function/List" \
|
||||
curl "http://localhost:8080/function/List" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{}'
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/geocoding/Lookup" \
|
||||
curl "http://localhost:8080/geocoding/Lookup" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/geocoding/Reverse" \
|
||||
curl "http://localhost:8080/geocoding/Reverse" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/gifs/Search" \
|
||||
curl "http://localhost:8080/gifs/Search" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/google/Search" \
|
||||
curl "http://localhost:8080/google/Search" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/helloworld/Call" \
|
||||
curl "http://localhost:8080/helloworld/Call" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/helloworld/Stream" \
|
||||
curl "http://localhost:8080/helloworld/Stream" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user