Skip to content

Use with the new "Release 2" API #7

@bohanwood

Description

@bohanwood

Since we can only create developer key of the new "Release 2" API now, if you are trying to use this package with it, you have to update the API endpoint as following:

$random = new RandomOrg\Random(
  'testtest-test-test-test-testtesttest',
  new RandomOrg\Client(
    'https://api.random.org/json-rpc/2/invoke'
  )
);

Hope this can help. Also, please consider to update the default API endpoint. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions