+Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: CC-BY-SA-3.0
+{% endcomment %}
h2. Initialize SDK
Set up an API client user agent:
h2. Initialize SDK
Set up an API client user agent:
-<notextile>
-<pre><code class="userinput">
+{% codeblock as perl %}
use Arvados;
my $arv = Arvados->new('apiVersion' => 'v1');
use Arvados;
my $arv = Arvados->new('apiVersion' => 'v1');
-</code></pre>
-</notextile>
+{% endcodeblock %}
The SDK retrieves the list of API methods from the server at run time. Therefore, the set of available methods is determined by the server version rather than the SDK version.
The SDK retrieves the list of API methods from the server at run time. Therefore, the set of available methods is determined by the server version rather than the SDK version.