Commit from GitHub Actions (Publish APIs & Clients)

This commit is contained in:
asim
2021-10-22 19:41:37 +00:00
parent 5b3cb9948d
commit 5cee69a09e
125 changed files with 251 additions and 127 deletions

View File

@@ -74,5 +74,5 @@
"prepare": "npm run build" "prepare": "npm run build"
}, },
"types": "index.d.ts", "types": "index.d.ts",
"version": "1.0.558" "version": "1.0.559"
} }

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/address"
"os" "os"
"github.com/micro/services/clients/go/address"
) )
// Lookup a list of UK addresses by postcode // Lookup a list of UK addresses by postcode

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/answer"
"os" "os"
"github.com/micro/services/clients/go/answer"
) )
// Ask a question and receive an instant answer // Ask a question and receive an instant answer

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/cache"
"os" "os"
"github.com/micro/services/clients/go/cache"
) )
// Decrement a value (if it's a number) // Decrement a value (if it's a number)

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/cache"
"os" "os"
"github.com/micro/services/clients/go/cache"
) )
// Delete a value from the cache // Delete a value from the cache

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/cache"
"os" "os"
"github.com/micro/services/clients/go/cache"
) )
// Get an item from the cache by key // Get an item from the cache by key

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/cache"
"os" "os"
"github.com/micro/services/clients/go/cache"
) )
// Increment a value (if it's a number) // Increment a value (if it's a number)

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/cache"
"os" "os"
"github.com/micro/services/clients/go/cache"
) )
// Set an item in the cache. Overwrites any existing value already set. // Set an item in the cache. Overwrites any existing value already set.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/crypto"
"os" "os"
"github.com/micro/services/clients/go/crypto"
) )
// Returns the history for the previous close // Returns the history for the previous close

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/crypto"
"os" "os"
"github.com/micro/services/clients/go/crypto"
) )
// Get news related to a currency // Get news related to a currency

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/crypto"
"os" "os"
"github.com/micro/services/clients/go/crypto"
) )
// Get the last price for a given crypto ticker // Get the last price for a given crypto ticker

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/crypto"
"os" "os"
"github.com/micro/services/clients/go/crypto"
) )
// Get the last quote for a given crypto ticker // Get the last quote for a given crypto ticker

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/currency"
"os" "os"
"github.com/micro/services/clients/go/currency"
) )
// Codes returns the supported currency codes for the API // Codes returns the supported currency codes for the API

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/currency"
"os" "os"
"github.com/micro/services/clients/go/currency"
) )
// Convert returns the currency conversion rate between two pairs e.g USD/GBP // Convert returns the currency conversion rate between two pairs e.g USD/GBP

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/currency"
"os" "os"
"github.com/micro/services/clients/go/currency"
) )
// Convert returns the currency conversion rate between two pairs e.g USD/GBP // Convert returns the currency conversion rate between two pairs e.g USD/GBP

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/currency"
"os" "os"
"github.com/micro/services/clients/go/currency"
) )
// Returns the historic rates for a currency on a given date // Returns the historic rates for a currency on a given date

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/currency"
"os" "os"
"github.com/micro/services/clients/go/currency"
) )
// Rates returns the currency rates for a given code e.g USD // Rates returns the currency rates for a given code e.g USD

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/db"
"os" "os"
"github.com/micro/services/clients/go/db"
) )
// Count records in a table // Count records in a table

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/db"
"os" "os"
"github.com/micro/services/clients/go/db"
) )
// Create a record in the database. Optionally include an "id" field otherwise it's set automatically. // Create a record in the database. Optionally include an "id" field otherwise it's set automatically.
@@ -11,10 +12,10 @@ func CreateArecord() {
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := dbService.Create(&db.CreateRequest{ rsp, err := dbService.Create(&db.CreateRequest{
Record: map[string]interface{}{ Record: map[string]interface{}{
"name": "Jane",
"age": 42, "age": 42,
"isActive": true, "isActive": true,
"id": "1", "id": "1",
"name": "Jane",
}, },
Table: "users", Table: "users",
}) })

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/db"
"os" "os"
"github.com/micro/services/clients/go/db"
) )
// Delete a record in the database by id. // Delete a record in the database by id.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/db"
"os" "os"
"github.com/micro/services/clients/go/db"
) )
// Read data from a table. Lookup can be by ID or via querying any field in the record. // Read data from a table. Lookup can be by ID or via querying any field in the record.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/db"
"os" "os"
"github.com/micro/services/clients/go/db"
) )
// Truncate the records in a table // Truncate the records in a table

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/db"
"os" "os"
"github.com/micro/services/clients/go/db"
) )
// Update a record in the database. Include an "id" in the record to update. // Update a record in the database. Include an "id" in the record to update.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/email"
"os" "os"
"github.com/micro/services/clients/go/email"
) )
// Send an email by passing in from, to, subject, and a text or html body // Send an email by passing in from, to, subject, and a text or html body

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/emoji"
"os" "os"
"github.com/micro/services/clients/go/emoji"
) )
// Find an emoji by its alias e.g :beer: // Find an emoji by its alias e.g :beer:

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/emoji"
"os" "os"
"github.com/micro/services/clients/go/emoji"
) )
// Get the flag for a country. Requires country code e.g GB for great britain // Get the flag for a country. Requires country code e.g GB for great britain

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/emoji"
"os" "os"
"github.com/micro/services/clients/go/emoji"
) )
// Print text and renders the emojis with aliases e.g // Print text and renders the emojis with aliases e.g

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/emoji"
"os" "os"
"github.com/micro/services/clients/go/emoji"
) )
// Send an emoji to anyone via SMS. Messages are sent in the form '<message> Sent from <from>' // Send an emoji to anyone via SMS. Messages are sent in the form '<message> Sent from <from>'

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/evchargers"
"os" "os"
"github.com/micro/services/clients/go/evchargers"
) )
// Retrieve reference data as used by this API and in conjunction with the Search endpoint // Retrieve reference data as used by this API and in conjunction with the Search endpoint

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/evchargers"
"os" "os"
"github.com/micro/services/clients/go/evchargers"
) )
// Search by giving a coordinate and a max distance, or bounding box and optional filters // Search by giving a coordinate and a max distance, or bounding box and optional filters

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/evchargers"
"os" "os"
"github.com/micro/services/clients/go/evchargers"
) )
// Search by giving a coordinate and a max distance, or bounding box and optional filters // Search by giving a coordinate and a max distance, or bounding box and optional filters

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/evchargers"
"os" "os"
"github.com/micro/services/clients/go/evchargers"
) )
// Search by giving a coordinate and a max distance, or bounding box and optional filters // Search by giving a coordinate and a max distance, or bounding box and optional filters

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/file"
"os" "os"
"github.com/micro/services/clients/go/file"
) )
// Delete a file by project name/path // Delete a file by project name/path

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/file"
"os" "os"
"github.com/micro/services/clients/go/file"
) )
// List files by their project and optionally a path. // List files by their project and optionally a path.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/file"
"os" "os"
"github.com/micro/services/clients/go/file"
) )
// Read a file by path // Read a file by path

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/file"
"os" "os"
"github.com/micro/services/clients/go/file"
) )
// Save a file // Save a file

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/forex"
"os" "os"
"github.com/micro/services/clients/go/forex"
) )
// Returns the data for the previous close // Returns the data for the previous close

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/forex"
"os" "os"
"github.com/micro/services/clients/go/forex"
) )
// Get the latest price for a given forex ticker // Get the latest price for a given forex ticker

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/forex"
"os" "os"
"github.com/micro/services/clients/go/forex"
) )
// Get the latest quote for the forex // Get the latest quote for the forex

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/function"
"os" "os"
"github.com/micro/services/clients/go/function"
) )
// Call a function by name // Call a function by name

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/function"
"os" "os"
"github.com/micro/services/clients/go/function"
) )
// Delete a function by name // Delete a function by name

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/function"
"os" "os"
"github.com/micro/services/clients/go/function"
) )
// Deploy a group of functions // Deploy a group of functions

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/function"
"os" "os"
"github.com/micro/services/clients/go/function"
) )
// //

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/function"
"os" "os"
"github.com/micro/services/clients/go/function"
) )
// List all the deployed functions // List all the deployed functions

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/geocoding"
"os" "os"
"github.com/micro/services/clients/go/geocoding"
) )
// Lookup returns a geocoded address including normalized address and gps coordinates. All fields are optional, provide more to get more accurate results // Lookup returns a geocoded address including normalized address and gps coordinates. All fields are optional, provide more to get more accurate results

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/geocoding"
"os" "os"
"github.com/micro/services/clients/go/geocoding"
) )
// Reverse lookup an address from gps coordinates // Reverse lookup an address from gps coordinates

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/helloworld"
"os" "os"
"github.com/micro/services/clients/go/helloworld"
) )
// Call returns a personalised "Hello $name" response // Call returns a personalised "Hello $name" response

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/helloworld"
"os" "os"
"github.com/micro/services/clients/go/helloworld"
) )
// Stream returns a stream of "Hello $name" responses // Stream returns a stream of "Hello $name" responses

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/holidays"
"os" "os"
"github.com/micro/services/clients/go/holidays"
) )
// Get the list of countries that are supported by this API // Get the list of countries that are supported by this API

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/holidays"
"os" "os"
"github.com/micro/services/clients/go/holidays"
) )
// List the holiday dates for a given country and year // List the holiday dates for a given country and year

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/id"
"os" "os"
"github.com/micro/services/clients/go/id"
) )
// Generate a unique ID. Defaults to uuid. // Generate a unique ID. Defaults to uuid.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/id"
"os" "os"
"github.com/micro/services/clients/go/id"
) )
// Generate a unique ID. Defaults to uuid. // Generate a unique ID. Defaults to uuid.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/id"
"os" "os"
"github.com/micro/services/clients/go/id"
) )
// Generate a unique ID. Defaults to uuid. // Generate a unique ID. Defaults to uuid.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/id"
"os" "os"
"github.com/micro/services/clients/go/id"
) )
// Generate a unique ID. Defaults to uuid. // Generate a unique ID. Defaults to uuid.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/id"
"os" "os"
"github.com/micro/services/clients/go/id"
) )
// List the types of IDs available. No query params needed. // List the types of IDs available. No query params needed.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/image"
"os" "os"
"github.com/micro/services/clients/go/image"
) )
// Convert an image from one format (jpeg, png etc.) to an other either on the fly (from base64 to base64), // Convert an image from one format (jpeg, png etc.) to an other either on the fly (from base64 to base64),

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/image"
"os" "os"
"github.com/micro/services/clients/go/image"
) )
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters. // Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/image"
"os" "os"
"github.com/micro/services/clients/go/image"
) )
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters. // Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/image"
"os" "os"
"github.com/micro/services/clients/go/image"
) )
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters. // Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/image"
"os" "os"
"github.com/micro/services/clients/go/image"
) )
// Upload an image by either sending a base64 encoded image to this endpoint or a URL. // Upload an image by either sending a base64 encoded image to this endpoint or a URL.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/image"
"os" "os"
"github.com/micro/services/clients/go/image"
) )
// Upload an image by either sending a base64 encoded image to this endpoint or a URL. // Upload an image by either sending a base64 encoded image to this endpoint or a URL.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/ip"
"os" "os"
"github.com/micro/services/clients/go/ip"
) )
// Lookup the geolocation information for an IP address // Lookup the geolocation information for an IP address

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/location"
"os" "os"
"github.com/micro/services/clients/go/location"
) )
// Read an entity by its ID // Read an entity by its ID

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/location"
"os" "os"
"github.com/micro/services/clients/go/location"
) )
// Save an entity's current position // Save an entity's current position

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/location"
"os" "os"
"github.com/micro/services/clients/go/location"
) )
// Search for entities in a given radius // Search for entities in a given radius

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/notes"
"os" "os"
"github.com/micro/services/clients/go/notes"
) )
// Create a new note // Create a new note

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/notes"
"os" "os"
"github.com/micro/services/clients/go/notes"
) )
// Delete a note // Delete a note

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/notes"
"os" "os"
"github.com/micro/services/clients/go/notes"
) )
// List all the notes // List all the notes

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/notes"
"os" "os"
"github.com/micro/services/clients/go/notes"
) )
// Read a note // Read a note

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/notes"
"os" "os"
"github.com/micro/services/clients/go/notes"
) )
// Update a note // Update a note

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/otp"
"os" "os"
"github.com/micro/services/clients/go/otp"
) )
// Generate an OTP (one time pass) code // Generate an OTP (one time pass) code

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/otp"
"os" "os"
"github.com/micro/services/clients/go/otp"
) )
// Validate the OTP code // Validate the OTP code

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/postcode"
"os" "os"
"github.com/micro/services/clients/go/postcode"
) )
// Lookup a postcode to retrieve the related region, county, etc // Lookup a postcode to retrieve the related region, county, etc

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/postcode"
"os" "os"
"github.com/micro/services/clients/go/postcode"
) )
// Return a random postcode and its related info // Return a random postcode and its related info

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/postcode"
"os" "os"
"github.com/micro/services/clients/go/postcode"
) )
// Validate a postcode. // Validate a postcode.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/prayer"
"os" "os"
"github.com/micro/services/clients/go/prayer"
) )
// Get the prayer (salah) times for a location on a given date // Get the prayer (salah) times for a location on a given date

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/qr"
"os" "os"
"github.com/micro/services/clients/go/qr"
) )
// Generate a QR code with a specific text and size // Generate a QR code with a specific text and size

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/quran"
"os" "os"
"github.com/micro/services/clients/go/quran"
) )
// List the Chapters (surahs) of the Quran // List the Chapters (surahs) of the Quran

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/quran"
"os" "os"
"github.com/micro/services/clients/go/quran"
) )
// Search the Quran for any form of query or questions // Search the Quran for any form of query or questions

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/quran"
"os" "os"
"github.com/micro/services/clients/go/quran"
) )
// Get a summary for a given chapter (surah) // Get a summary for a given chapter (surah)

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/quran"
"os" "os"
"github.com/micro/services/clients/go/quran"
) )
// Lookup the verses (ayahs) for a chapter including // Lookup the verses (ayahs) for a chapter including

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/routing"
"os" "os"
"github.com/micro/services/clients/go/routing"
) )
// Turn by turn directions from a start point to an end point including maneuvers and bearings // Turn by turn directions from a start point to an end point including maneuvers and bearings

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/routing"
"os" "os"
"github.com/micro/services/clients/go/routing"
) )
// Get the eta for a route from origin to destination. The eta is an estimated time based on car routes // Get the eta for a route from origin to destination. The eta is an estimated time based on car routes

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/routing"
"os" "os"
"github.com/micro/services/clients/go/routing"
) )
// Retrieve a route as a simple list of gps points along with total distance and estimated duration // Retrieve a route as a simple list of gps points along with total distance and estimated duration

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/rss"
"os" "os"
"github.com/micro/services/clients/go/rss"
) )
// Add a new RSS feed with a name, url, and category // Add a new RSS feed with a name, url, and category

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/rss"
"os" "os"
"github.com/micro/services/clients/go/rss"
) )
// Get an RSS feed by name. If no name is given, all feeds are returned. Default limit is 25 entries. // Get an RSS feed by name. If no name is given, all feeds are returned. Default limit is 25 entries.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/rss"
"os" "os"
"github.com/micro/services/clients/go/rss"
) )
// List the saved RSS fields // List the saved RSS fields

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/rss"
"os" "os"
"github.com/micro/services/clients/go/rss"
) )
// Remove an RSS feed by name // Remove an RSS feed by name

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/sentiment"
"os" "os"
"github.com/micro/services/clients/go/sentiment"
) )
// Analyze and score a piece of text // Analyze and score a piece of text

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/sms"
"os" "os"
"github.com/micro/services/clients/go/sms"
) )
// Send an SMS. // Send an SMS.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/stock"
"os" "os"
"github.com/micro/services/clients/go/stock"
) )
// Get the historic open-close for a given day // Get the historic open-close for a given day

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/stock"
"os" "os"
"github.com/micro/services/clients/go/stock"
) )
// Get the historic order book and each trade by timestamp // Get the historic order book and each trade by timestamp

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/stock"
"os" "os"
"github.com/micro/services/clients/go/stock"
) )
// Get the last price for a given stock ticker // Get the last price for a given stock ticker

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/stock"
"os" "os"
"github.com/micro/services/clients/go/stock"
) )
// Get the last quote for the stock // Get the last quote for the stock

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/stream"
"os" "os"
"github.com/micro/services/clients/go/stream"
) )
// Publish a message to the stream. Specify a topic to group messages for a specific topic. // Publish a message to the stream. Specify a topic to group messages for a specific topic.
@@ -11,9 +12,9 @@ func PublishAmessage() {
streamService := stream.NewStreamService(os.Getenv("MICRO_API_TOKEN")) streamService := stream.NewStreamService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := streamService.Publish(&stream.PublishRequest{ rsp, err := streamService.Publish(&stream.PublishRequest{
Message: map[string]interface{}{ Message: map[string]interface{}{
"id": "1",
"type": "signup", "type": "signup",
"user": "john", "user": "john",
"id": "1",
}, },
Topic: "events", Topic: "events",
}) })

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/stream"
"os" "os"
"github.com/micro/services/clients/go/stream"
) )
// Subscribe to messages for a given topic. // Subscribe to messages for a given topic.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/sunnah"
"os" "os"
"github.com/micro/services/clients/go/sunnah"
) )
// Get a list of books from within a collection. A book can contain many chapters // Get a list of books from within a collection. A book can contain many chapters

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/sunnah"
"os" "os"
"github.com/micro/services/clients/go/sunnah"
) )
// Get all the chapters of a given book within a collection. // Get all the chapters of a given book within a collection.

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/sunnah"
"os" "os"
"github.com/micro/services/clients/go/sunnah"
) )
// Get a list of available collections. A collection is // Get a list of available collections. A collection is

View File

@@ -2,8 +2,9 @@ package example
import ( import (
"fmt" "fmt"
"github.com/micro/services/clients/go/sunnah"
"os" "os"
"github.com/micro/services/clients/go/sunnah"
) )
// Hadiths returns a list of hadiths and their corresponding text for a // Hadiths returns a list of hadiths and their corresponding text for a

Some files were not shown because too many files have changed in this diff Show More