ZW3B.Blog

Samedi 19 avril 2025 - 17h29m57s GMT+02:00 summer time.

Vous êtes connecté(e) sur le site depuis le Samedi 19 avril 2025 - 17h29m56s.

My Developpement

Welcome to the page of my developments, projects in preparation/realization.

I often write articles about the configuration and administration of services on server machines GNU/Linux which are stored on howto.zw3b.fr - There are also other sections that may interest you.

Otherwise for development, programming HTML/JAVASCRIPT/PHP codes - below are some links - in addition to the docs I write on howto.zw3b.fr.

SWAN scanning IPv4 + IPv6

Test on Date

Hours in this world

Weather API test

Rdap Test - Whois Replacement

Test retrieval of global variables AWStats

Google API test

Twitch API test

OAuth2 Account - Personal JSON Web Token Test

Reports DMARC between mail servers

About: Prevent Identity Theft and phishing with DMARC

I opened a topic on Debian-FR.org: Servers Mails - Reports DMARC (SPF - DKIM) - analyze XML file? and a script SH (dmarc-file-dzip.sh) in comment 32 for unzip files DMARC reports.

And another documentation page I wrote: MTA - Mail error messages - SMTP return codes to analyze the returns (Status) of the recipient SMTP servers.

ZW3B API v7.1.2 Engine

The API retrieves content from ZW3B [FR|TV|COM|NET|BLOG] websites in JSON

ZW3B Client API

Preparing a PHP Class for clients so that they can authenticate from their server machine (its website) and access private/protected resources.

class zw3bApiClient()

Retrieve contents this way :

Note of Myself : I have not secured the content listings on the API server (Creation in development of the client/server API).
<?php

include '/your_directory/var/lib/php/zw3bApiClient.class.php';

//-------------------------------------------------------------------------
// CLIENT API CALL

$config = array();

//-----------------------
// BETA-TESTERS (Wilcard Origins)

// Minimun config
$config['api_name'] = 'BETA-TESTERS';
$config['client_project']['name'] = 'ZW3B-API-BETA-TESTERS';

//-----------------------

$zw3bApiClient = new zw3bApiClient();

$my_client = $zw3bApiClient->ClientModUsr($config);

// CLIENT API CALL
//-------------------------------------------------------------------------

//-------------------------------------------------------------------------
// REQUEST REPORTS / DMARC / ANALYSIS

$reports = new zw3bApiClientModReports($my_client);

$dmarc_analysis = $reports->dmarc('analysis', array(
    'offset' => 0,
    'limit' => 200,
    'l' => 'EN'
    )
);

// REQUEST REPORTS / DMARC / ANALYSIS
//-------------------------------------------------------------------------

echo '<pre>'.print_r(json_decode($dmarc_analysis),1).'</pre>';

//-------------------------------------------------------------------------
// REQUEST CONTENTS / DOCS / LST

$contents = new zw3bApiClientModContents($my_client);

$docs = $contents->docs('lst', array(
    'offset' => 0,
    'limit' => 30,
    'l' => 'EN'
    )
);

// REQUEST CONTENTS / DOCS / LST
//-------------------------------------------------------------------------

echo '<pre>'.print_r(json_decode($docs),1).'</pre>';

//-------------------------------------------------------------------------
// REQUEST CONTENTS / DOCS / GET / (cid)

$contents = new zw3bApiClientModContents($my_client);

$doc = $contents->docs('get', array(
    'cid' => 2172,
    'l' => 'FR'
    )
);

// REQUEST CONTENTS / DOCS /  GET / (cid)
//-------------------------------------------------------------------------

echo '<pre>'.print_r(json_decode($doc),1).'</pre>';

?>

Render exemple :