mitmelon / copytraps_php
Explore our guides and examples to integrate Copytraps.
dev-main
2021-11-30 06:22 UTC
Requires
- php: >=7.0
- monolog/monolog: ^1.24
- php-http/client-implementation: *
- php-http/discovery: *
- php-http/guzzle7-adapter: *
- php-http/message: *
This package is auto-updated.
Last update: 2025-03-01 00:36:39 UTC
README
Programmatically or manually create asset, create dispute, grant permissions, create interface, monitor account and fund your account.
Install:
Use composer to install
composer require mitmelon/copytraps_php
Usage :
require_once __DIR__."/vendor/autoload.php"; $copytraps = new Copytraps(PUBLIC_KEY, PRIVATE_KEY); $session = $copytraps->authenticate(); if($session['status'] === true){ //Create copyright or do other things $response = $copytraps->createDating( array( 'type' => 'article-text', 'title' => 'I am a hero', 'depth' => 'moderate', 'link' => 'https://myblog.com/i-am-hero', 'fee' => '10000', 'content' => 'Heroes dont die' ), $session ); //Returns Json as result }
NOTE
Please note that this SDK is not yet available for use. We shall release both the SDK along side with the full API to use inside your application once its ready.