Libraries tagged by api-api

giddyeffects/yii2-yiipixu

0 Favers
95 Downloads

Access weather and geo data via the JSON/XML RESTful Apixu API directly in your Yii2 project

Go to Download


daphascomp/daphascompsms

0 Favers
1 Downloads

# Authentication Requests made to our APIs must be authenticated, there are two ways to do this: 1. Authenticating using your API apiUsername and apiPassword - `Basic Auth` 2. Authenticating using an Auth Token - `Bearer Token` ## Method 1: Basic Auth Basic Authentication is a method for an HTTP user agent (e.g., a web browser) to provide a apiUsername and apiPassword when making a request. When employing Basic Authentication, users include an encoded string in the Authorization header of each request they make. The string is used by the request’s recipient to verify users’ identity and rights to access a resource. The Authorization header follows this format: > Authorization: Basic base64(apiUsername:apiPassword) So if your apiUsername and apiPassword are `onfon` and `!@pas123`, the combination is `onfon:!@pas123`, and when base64 encoded, this becomes `b25mb246IUBwYXMxMjM=`. So requests made by this user would be sent with the following header: > Authorization: Basic b25mb246IUBwYXMxMjM= | Description | | ---------------------------------------------------------------------------------------------- | | **apiUsername** `String` `Required` Your onfon account apiUsername, retrieved from portal | | **apiPassword** `String` `Required` Your onfon account apiPassword, retrieved from portal | ## Method 2: Bearer Tokens This authentication stategy allows you to authenticate using JSON Web Token ``JWT` that will expire after given duration. Each Access Token is a `JWT`, an encoded JSON object with three parts: the `header`, the `payload`, and the `signature`. The following is an example Access Token generated for Conversations > Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c ### Getting the token To generate the token, make a `POST` request to `/v1/authorization` endpoint with your `apiUsername` and `apiPassword` This request should be made from your server and not on the client side such as browser or mobile environment. You will receive a JSON similar to below: `{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", "validDurationSeconds": 3600}` You can use the token received to make API calls. The token will be valid for value of `validDurationSeconds`, before which you should generate a new token. #### Request Body ``` { "apiUsername": "root", "apiPassword": "hakty11" } ``` #### Response Body ``` { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", "validDurationSeconds": 3600 } ``` #### Example Curl ``` curl --location --request POST 'https://apis.onfonmedia.co.ke/v1/authorization' \ --data-raw '{ "apiUsername": "correctapiUsername", "apiPassword": "correctapiPassword" } ``` #### Making an API call You will be required to pass the token in `Authorization` header prefixed by `Bearer` when calling other endpoints. Example `Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c`

Go to Download


bigcrunch/gateapi-php

0 Favers
236 Downloads

Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.

Go to Download


slvler/brave-search-api

0 Favers
1 Downloads

Brave search api API wrapper for Laravel

Go to Download


rjvandoesburg/laravel-apixu-client

0 Favers
255 Downloads

A laravel package to interface with the Apixu API

Go to Download


purt09/apirone

0 Favers
12 Downloads

Library for implement Apirone Api

Go to Download


polderknowledge/apigilityclient

0 Favers
2760 Downloads

Library to wrap basic apigilty api's

Go to Download


mightybytesuk/apirone

0 Favers
4 Downloads

Simple Package To Help Use The APIrone API

Go to Download


lapaygroup/apiship-sdk-php

0 Favers
2 Downloads

Inegration (SDK) with Apiship API

Go to Download


jeylabs/api.ai

1 Favers
909 Downloads

PHP Library for Api.ai API with Laravel 5.3 Support out of the box!

Go to Download


jetcamp/laravel-json-api-client

0 Favers
99 Downloads

Laravel client for easy access of data from {json:api} APIs

Go to Download


dymantic/simple-weather

0 Favers
37 Downloads

A simple weather summary using apixu api

Go to Download


dorvidas/laravel-json-api-client

2 Favers
107 Downloads

Laravel client for easy access of data from {json:api} APIs

Go to Download


aliyun-api-manage/apigateway

1 Favers
23 Downloads

AliYun ApiGateWay Api Manage

Go to Download


fm5z/sitra-api-php

0 Favers
28 Downloads

Apidae API official PHP Client

Go to Download


<< Previous Next >>