Categorygithub.com/apyhub/apyhub.go
modulepackage
0.0.0-20230209142748-b6fdb97f035a
Repository: https://github.com/apyhub/apyhub.go.git
Documentation: pkg.go.dev

# README

Alt text

ApyHub for Golang

Reference Chat

About

Welcome to the ApyHub SDK for Golang! This library provides easy access to the ApyHub APIs through a set of simple and powerful functions.

Our underlying philosophy is to not bloat applications, which is why we have made sure to keep the package as minimal as possible. With this SDK, you can easily perform tasks such as file conversion, text and metadata extraction, document and image generation, image processing, and access to data lists and currency conversion. As our platform grows and develops new APIs, we will be adding more functions to this library.

To learn more about ApyHub, visit our website at apyhub.com or join our Discord server at discord.com/invite/apyhub.

API Documentation

Our SDK provides access to the following API categories:

Each of these categories contains multiple functions for interacting with the corresponding API. For more examples and detailed API documentation, see the links above.

Installation

Use go get to retrieve the SDK to add it to your GOPATH workspace, or project's Go module dependencies.

go get github.com/apyhub/apyhub.go

To update the SDK use go get -u to retrieve the latest version of the SDK.

go get -u github.com/apyhub/apyhub.go

Usage

To use the library, you will need to initialize it with your ApyHub API token.

Token

import (
   apyhub "github.com/apyhub/apyhub.go"
)

err:=apyhub.InitApyHub("YOUR_APY_TOKEN")
if err!=nil {
   log.Fatal(err)
}

Basic Authorization

import(
   apyhub "github.com/apyhub/apyhub.go"
   h "github.com/apyhub/apyhub.go/helper"
)

BasicAuth := h.BasicAuth{
   Username: "username",
   Password: "password",
}
    
err:=apyhub.InitApyHub(BasicAuth)
if err!=nil {
   log.Fatal(err)
}

Example

Once the library is initialized, you can import and use the various functions and methods provided by the library. For example, to access the data list of countries, you can do the following:

import (
   "github.com/apyhub/apyhub.go/data"
)

 country,err:=data.Country("countrycode")

Contributing

We welcome contributions to this project. If you have an idea for a new feature or improvement, please open an issue to discuss it. If you'd like to contribute code, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Make your changes and commit them.
  4. Push your branch to your fork on GitHub.
  5. Open a pull request from your branch to the main branch of this repository.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Archiver and secure archiver.
No description provided by the author
Generate Charts, bar code,qr code and pdf.
No description provided by the author
No description provided by the author
No description provided by the author
image processing.
No description provided by the author
Data getting Information.
No description provided by the author
No description provided by the author
No description provided by the author
##Functions ### csvToExcel Converts a CSV file or URL to an Excel file.
**`Example 3 : convert csv file to AWS presigned url`** ```go // Input is a file File,err :=os.Open("any csv file") if err!=nil { log.Fatal(err) } url,err :=apyhub.CsvToExcelAsUrl(File) ``` **`Example 4 : convert csv file url to AWS presigned url`** ```go fileUrl :="csv file url" // Input is a url url,err :=apyhub.CsvToExcelAsUrl(fileUrl) ``` #### Defined in [convert/csvToExcel.go:38](https://github.com/apyhub/apyhub.go/blob/main/convert/csvToExcel.go#L38) **`Link`** https://apyhub.com/utility/converter-csv-excel #### Parameters <table> <tr><th>Name</th><th>Type</th><th>Description</th></tr> <tr><td>input</td><td> <code>"string"</code> | <code>Buffer</code></td><td>The html file or URL.</td></tr> <tr><td>output</td><td><code>[]byte</code> | <code>"string"</code> </td><td>The format for the response.</td></tr> </table> #### Returns The data for the output file as slice of byte or Url as a string.
No description provided by the author
No description provided by the author
Email DNS and Acadamic.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
### imageToPdf Converts a image file or URL to an pdf file.
No description provided by the author
Set the token.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IN and UK postcode.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Extraction.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
unarchiver.
Validation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author