Giter Club home page Giter Club logo

ossnservices's Introduction

OssnServices

A basic API for your OSSN website, which allows you to integrate OSSN into your applications. This is a initial version and will be improved in the future. This component is introduced in OSSN v5.0 and requires minimum OSSN v5.0

  • You can get a Users basic details like
    • First Name
    • Last Name
    • Email
    • Gender
    • Birthdate
  • Get users friends
  • User Authentication (by username and password)
    • Username can be email

Basic Usage

User Details

CURL https://www.mywebsite.com/api/v1.0/user_details?api_key_token=<my_api_key_token>&guid=<user_guid>

Below is the sample response from the API

{
    "merchant": "Ossn Development",
    "url": "https:\/\/development.opensource-socialnetwork.org\/",
    "time_token": 1535399772,
    "payload": false,
    "code": "100",
    "message": "Request successfully executed",
    "payload": {
        "first_name": "System",
        "last_name": "Administrator",
        "email": "[email protected]",
        "birthdate": "20\/02\/2000",
        "gender": "male"
    }
}

User Friends

CURL https://www.mywebsite.com/api/v1.0/user_friends?api_key_token=<my_api_key_token>&guid=<user_guid>

User Authentication

CURL https://www.mywebsite.com/api/v1.0/user_authenticate?api_key_token=<my_api_key_token>&username=<user_username>&password=<user_password_in_plaintext>

API CODES

Code Description
100 The requested method successfully responded to the request.
101 Invalid API method.
102 The requested method didn't returned any response.
103 The requested user is invalid.
104 The requested user is not validated.
105 Unable to login. The supplied password is incorrect or system have returned the error.

If you have questions please post them to our community website https://www.opensource-socialnetwork.org/community

ossnservices's People

Contributors

lianglee avatar sz1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.