Skip to content

AVideo Platform API

Fiero edited this page Jan 31, 2020 · 9 revisions

We build an application program interface (API) for AVideo, it is a set of routines, protocols, and tools for third-party applications.

For example, we use our API plugin in our mobile application, which means you also can develop any other application using the same API

  1. First thing, make sure you enable your API plugin.
  2. We provide an Info button on this plugin, to help you understand the resources we have. To access this info you must be an admin. For example, the demo site API info is https://demo.avideo.com/plugin/API/info.php. We provide the API for the following resources
  • category
  • video
  • likes
  • like
  • dislike
  • removelike
  • signIn
  • signUp
  • vmap
  • IP2Location
  • favorite
  • favorite
  • removeFavorite

Authentication

Most of the resources require you to submit a user and password, so it can return the proper response.

For example, to add a like, you will need also to provide what user is requesting it.

you can provide an encoded or a raw password, The encodedPass parameter means you will send an encrypted password (Hash), the password hash is different per website, if you want to know what is a hash for a specific password you can use the encryptPass URL. On the demo site, the URL is the following:

https://demo.avideo.com/objects/encryptPass.json.php?pass=123

You will need to provide the password, so the raw password will be 123 and the hash will be returned in a Json response

So you have 2 options to submit a Like to a video:

  1. (Raw) https://demo.avideo.com/plugin/API/get.json.php?APIName=signIn&user=admin&pass=123

  2. (Encoded) https://demo.avideo.com/plugin/API/get.json.php?APIName=signIn&user=admin&pass=f321d14cdeeb7cded7489f504fa8862b&encodedPass=true

Upload Video

You can also submit videos from third parties apps to the Streamer, so the Streamer will manage all Security and permissions and send it to the encoder.

We prepare a guide to show you how to do it. https://github.com/WWBN/AVideo/wiki/Upload-videos-from-third-party-applications

Clone this wiki locally