webhubworks/weclapp-api-core

This package houses a generated API client to interact with the Weclapp API.

3.0.1 2025-05-15 13:11 UTC

This package is auto-updated.

Last update: 2025-05-15 13:16:16 UTC


README

Generating the Weclapp API client

  • Place the OpenAPI spec in src/config/jane-openapi-php.
  • Run ddev php vendor/bin/jane-openapi generate --config-file=./src/config/jane-openapi.php
    • This will generate the API client in app/Weclapp/generated

Usage

Example usage:

<?php

use Webhub\Weclapp\Client;

class WeclappTest extends Command
{
    public function handle()
    {
        $weclappClient = Client::create();

        $result = $weclappClient->getArticleCount();

        ...
    }
}