Libraries tagged by v1

gavinggordon/assetinc

0 Favers
16 Downloads

A PHP class which provides simple javascript or css asset inclusion.

Go to Download


evgeniy-it/widget-bundle

0 Favers
2084 Downloads

WidgetBundle is something similar to modx snippets, makes your content managment system powerful.

Go to Download


digia/php-twit-api

0 Favers
6 Downloads

PHP Library for interacting with Twitter API v1.1

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


corleonis/oauth

1 Favers
19 Downloads

This is a PHP oAuth v1 client/provider library.

Go to Download


codename065/coinbase-commerce

3 Favers
149 Downloads

PHP SDK for Coinbase commerce

Go to Download


michaelj2324/sugarcrm-restv10-sdk

1 Favers
17 Downloads

An SDK for interacting with Sugar's REST v10 API.

Go to Download


v1v2/php-client

0 Favers
3 Downloads

JSON API to https://cov19vacsideeffects.online data

Go to Download


v1shky/fancyit

2 Favers
10 Downloads

A package to generate fancy string from normal string

Go to Download


v1narth/laralogs

0 Favers
0 Downloads

Model logging library for Laravel.

Go to Download


v1n2e7t/jwt

0 Favers
21 Downloads

A simple library to work with JSON Web Token and JSON Web Signature

Go to Download


v1adjke666/sypexgeo

0 Favers
2 Downloads

PHP library Sypex Geo API (http://sypexgeo.net)

Go to Download


v18/summa-debug

0 Favers
6 Downloads

This is package to display pretty error pages.

Go to Download


v1634119116/5155626846

0 Favers
18 Downloads

A short description of what your package does

Go to Download


v10086/redis-ratelimit

0 Favers
38 Downloads

基于redis的限流器

Go to Download


<< Previous Next >>