Skip to content

Initiating Client instances #111

Closed Answered by georged
clhettiarachchi asked this question in Q&A
Discussion options

You must be logged in to vote

createOnlineClient takes logger and cache pool as optional parameters. If cache pool is set, we will cache the access token and bypass the call to the authentication endpoint, if possible. It does look like you're using the client inside the Dataverse plugin. In that instance you should be using the client provided by the plugin that takes care of caching:

$webapi = ConnectionService::instance()->getClient();
$webapi->Create(...);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@clhettiarachchi
Comment options

Answer selected by clhettiarachchi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants