Skip to content

usersMeOrganizationsGet return null #2

Description

@RehArk

Hello,
I’m having a small issue with UtilisateurApi::usersMeOrganizationsGet. The function always returns null. Am I doing something wrong?

Here is my code:

        $baseUrl = 'https://api.helloasso-sandbox.com';

        $provider = new GenericProvider([  
            'clientId'                => $client_id,  
            'clientSecret'            => $client_secret,  
            'urlAccessToken'          => $baseUrl.'/oauth2/token',  
            'urlAuthorize'            => '',  
            'urlResourceOwnerDetails' => ''  
        ]);

        $accessToken = $provider->getAccessToken('client_credentials');

        $client = new Client();
        $config = Configuration::getDefaultConfiguration()
            ->setAccessToken($accessToken)
            ->setHost($baseUrl.'/v5')
        ;

        $apiInstance = new UtilisateursApi(
            $client,
            $config
        );

        $organizations = $apiInstance->usersMeOrganizationsGet();

        var_dump($organizations); // always null
        die;

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