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.
agentUrl
DirectoryPublisherEntry
for await (const pub of fetchAgentAuthorizationsFromDirectory(myAgentUrl, { directoryUrl: 'https://aao.example.com', status: ['authorized'],})) { console.log(pub.publisher_domain, pub.properties_authorized);} Copy
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(); Copy
const iter = fetchAgentAuthorizationsFromDirectory(myAgentUrl, { directoryUrl: 'https://aao.example.com',});const allPublishers = await iter.toArray();
Fetch the set of publishers whose adagents.json authorizes
agentUrl, from an AAO-compatible directory. Returns an async iterator that yieldsDirectoryPublisherEntryvalues across all pages.