ZeroAPI

ZeroAPI allows developers to easily deliver the rich, real-time content they need for powering even the most demanding ZApps (and DApps).
Broadcast messaging allows perfect secrecy for ALL communications.


BitMessage Address

BM-2cWnt2zqiPi3DFeoH1CUN62547Niit7akx

Chan(nel) Password

0API

(Wire|Network) Topic
(Magic) Id

0x304E45540NET

Stream Id #

809,586,7610x304150490API


Code Example

The ZeroApi library is available to ALL Zeronet desktop and mobile clients by default, so as a developer you don't have to do anything extra.
You're welcome!

/**
 * Perform basic user authentication.
 */
const userAuth = await ZeroApi.authorize(_username, _password, _crypto)

if (userAuth) {
    ZeroApi.navigate('/account/Main')
} else {
    ZeroApi.alert('authFailed')
}
        

Configuration

Easily import additional libraries as needed. Simply list them in the zite's config.yml file and they'll be imported automagically.

address: 1ZAPi2PKad9dz9wqvwiDudzz5dCacxt3w
title: ZeroAPI
description: Most active decentralized information endpoint on the Zeronet.
background-color: #FFF
permissions:
    - disk // read/write access
    - whois // name, contact, account(s)
rating:
    - age: 4+
    - adult: none
    - violence: none
libs:
    - IoT
    - lodash
    - moment
    - ...
parent:
    - address: 1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D
    - auto_update: false
translate:
    - js/all.js
auth:
    - signers_sign: GzuVlCH+hxtXBuj88Y3OecPY5EPFrelQrcg/ds2ErUOZEGiLXrV8M1UE1YmICz3kBfsPIdHyKcsGoMJpV9xq/kw=
    - sigs_required: 1
    - sigs:
        - 1ZAPi2PKad9dz9wqvwiDudzz5dCacxt3w: HFOAGDd2YDxnB0QcPDf8/dTsxMDoxpb3gpOY6cqAjA/TNSwXKkNIgfiPRKZs3DS2ooln6VCCgLGyZ+aG09LZdR0=
zeronet_version: ^18.7.1
        

Content Management

Files and content are managed by by a single content.json file.

{
    "files": {
        "index.html": {
            "sha512": "76b0030f6b09b94d7977205e3a72ec38e581b9f3803d6a09edf9e859a6a9f5dc",
            "size": 3348
        },
        "js/ZeroApi.js": {
            "sha512": "42125c7aa72496455e044e3fd940e0f05db86824c781381edb7a70f71a5f0882",
            "size": 3370
        }
    },
    "inner_path": "content.json",
    "modified": 1533081912
}
        
This page is a preview of ZeroNet. Start your own ZeroNet for complete experience. Learn More