@adcp/sdk API Reference - v10.0.1
    Preparing search index...

    Function fetchAgentAuthorizationsFromDirectory

    • Fetch the set of publishers whose adagents.json authorizes agentUrl, from an AAO-compatible directory. Returns an async iterator that yields DirectoryPublisherEntry values across all pages.

      Parameters

      Returns AgentAuthorizationsIterator

      for await (const pub of fetchAgentAuthorizationsFromDirectory(myAgentUrl, {
      directoryUrl: 'https://aao.example.com',
      status: ['authorized'],
      })) {
      console.log(pub.publisher_domain, pub.properties_authorized);
      }
      const iter = fetchAgentAuthorizationsFromDirectory(myAgentUrl, {
      directoryUrl: 'https://aao.example.com',
      });
      const allPublishers = await iter.toArray();