Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Get Metrics from 2 or more projects #24

Description

@papazetis

I am trying to get the metrics from 2 projects with following code:

Delighted\Client::setApiKey('project_1_api_key');
$customer_metrics = \Delighted\Metrics::retrieve();

Delighted\Client::setApiKey('project_2_api_key');
$partner_metrics = \Delighted\Metrics::retrieve();

But $partner_metrics always has the value from 1st project.

I think that second connection never happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions