<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Integration on Capping</title><link>/en/docs/integration/</link><description>Recent content in Integration on Capping</description><generator>Hugo</generator><language>en</language><atom:link href="/en/docs/integration/index.xml" rel="self" type="application/rss+xml"/><item><title>iOS integration</title><link>/en/docs/integration/integration-ios/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/en/docs/integration/integration-ios/</guid><description>&lt;h2 id="latest-version"&gt;Latest Version&lt;/h2&gt;
&lt;p&gt;1.3&lt;/p&gt;
&lt;h2 id="requirements"&gt;Requirements&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;iOS 14.0+&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="installation"&gt;Installation&lt;/h2&gt;
&lt;p&gt;To add LMDCapping in a SwiftPM project, add it to your Package.swift:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;dependencies: [
 .package(url: &amp;#34;https://github.com/lemonde/capping-spm.git&amp;#34;, from: &amp;#34;1.3.0&amp;#34;)
]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And then add the following product to any target that needs access to the library:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;targets: [
 .target(name: &amp;#34;MyTarget&amp;#34;, dependencies: [&amp;#34;LMDCapping&amp;#34;])
]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="usage"&gt;Usage&lt;/h2&gt;
&lt;h3 id="getting-started"&gt;Getting started&lt;/h3&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;import LMDCapping
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Create a &lt;code&gt;CappingService&lt;/code&gt; object with the two required parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;baseURL&lt;/code&gt;: the base URL that will be used for the capping operations requests.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;apiKey&lt;/code&gt;: the api key that will be used for the capping operations requests.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can pass an optional &lt;code&gt;configuration&lt;/code&gt; parameter to tweak some settings of the &lt;code&gt;CappingService&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Javascript integration</title><link>/en/docs/integration/integration-js/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/en/docs/integration/integration-js/</guid><description>&lt;p&gt;Add following lines into your html, just before the closing body tag. This JavaScript SDK integration launch tracking of simultaneous readings, without any blocking.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-html" data-lang="html"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#000;font-weight:bold"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#204a87;font-weight:bold"&gt;script&lt;/span&gt;&lt;span style="color:#000;font-weight:bold"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#204a87;font-weight:bold"&gt;var&lt;/span&gt; &lt;span style="color:#000"&gt;siriusCapping&lt;/span&gt; &lt;span style="color:#ce5c00;font-weight:bold"&gt;=&lt;/span&gt; &lt;span style="color:#204a87"&gt;window&lt;/span&gt;&lt;span style="color:#000;font-weight:bold"&gt;.&lt;/span&gt;&lt;span style="color:#000"&gt;siriusCapping&lt;/span&gt; &lt;span style="color:#ce5c00;font-weight:bold"&gt;||&lt;/span&gt; &lt;span style="color:#000;font-weight:bold"&gt;{};&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#000"&gt;siriusCapping&lt;/span&gt;&lt;span style="color:#000;font-weight:bold"&gt;.&lt;/span&gt;&lt;span style="color:#000"&gt;config&lt;/span&gt; &lt;span style="color:#ce5c00;font-weight:bold"&gt;=&lt;/span&gt; &lt;span style="color:#000;font-weight:bold"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#000"&gt;brand&lt;/span&gt;&lt;span style="color:#ce5c00;font-weight:bold"&gt;:&lt;/span&gt; &lt;span style="color:#4e9a06"&gt;&amp;#34;&amp;lt;BRAND_UUID&amp;gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#000;font-weight:bold"&gt;,&lt;/span&gt; &lt;span style="color:#8f5902;font-style:italic"&gt;//mandatory
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8f5902;font-style:italic"&gt;&lt;/span&gt; &lt;span style="color:#000"&gt;userId&lt;/span&gt;&lt;span style="color:#ce5c00;font-weight:bold"&gt;:&lt;/span&gt; &lt;span style="color:#4e9a06"&gt;&amp;#34;&amp;lt;THE_USER_ID&amp;gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#000;font-weight:bold"&gt;,&lt;/span&gt; &lt;span style="color:#8f5902;font-style:italic"&gt;//mandatory
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8f5902;font-style:italic"&gt;&lt;/span&gt; &lt;span style="color:#000;font-weight:bold"&gt;};&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#000;font-weight:bold"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#204a87;font-weight:bold"&gt;script&lt;/span&gt;&lt;span style="color:#000;font-weight:bold"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#000;font-weight:bold"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#204a87;font-weight:bold"&gt;script&lt;/span&gt; &lt;span style="color:#c4a000"&gt;async&lt;/span&gt; &lt;span style="color:#c4a000"&gt;src&lt;/span&gt;&lt;span style="color:#ce5c00;font-weight:bold"&gt;=&lt;/span&gt;&lt;span style="color:#4e9a06"&gt;&amp;#34;https://capping.sirius.press/sdk.v1.1.0.js&amp;#34;&lt;/span&gt;&lt;span style="color:#000;font-weight:bold"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#204a87;font-weight:bold"&gt;script&lt;/span&gt;&lt;span style="color:#000;font-weight:bold"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Param&lt;/th&gt;
 &lt;th&gt;Type&lt;/th&gt;
 &lt;th&gt;Description&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;siriusCapping.config.brand&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;string&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;A brand uuid that we&amp;rsquo;ll give you&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;siriusCapping.config.userId&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;string&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;The ID of the user, that you can write encrypted or hashed&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;div class="alert alert-primary" role="alert"&gt;&lt;div class="h4 alert-heading" role="heading"&gt;Note&lt;/div&gt;
&lt;p&gt;Declaring &lt;code&gt;siriusCapping.config.brand&lt;/code&gt; and &lt;code&gt;siriusCapping.config.userId&lt;/code&gt; will automatically launch simultaneous readings tracking.
If you don’t want to launch Capping, do not define these variables and/or do not insert the JavaScript SDK.&lt;/p&gt;</description></item><item><title>Kotlin integration</title><link>/en/docs/integration/integration-kotlin/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/en/docs/integration/integration-kotlin/</guid><description>&lt;h2 id="latest-version"&gt;Latest Version&lt;/h2&gt;
&lt;p&gt;1.2&lt;/p&gt;
&lt;p&gt;Versions listed in &lt;a href="https://central.sonatype.com/artifact/fr.lemonde/capping/versions"&gt;https://central.sonatype.com/artifact/fr.lemonde/capping/versions&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="requirements"&gt;Requirements&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;minSdkVersion 26&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="setup"&gt;Setup&lt;/h2&gt;
&lt;p&gt;Add to your &lt;code&gt;build.gradle&lt;/code&gt; file&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;implementation &amp;#34;fr.lemonde:capping:1.2&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id="initiate-sdk"&gt;Initiate SDK&lt;/h3&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;Capping.getInstance(applicationContext).initialize([BASE_URL], [YOUR_API_KEY])
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you want to configure the sdk you can also add a CappingSDKConfiguration object&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;Capping.getInstance(applicationContext).initialize([BASE_URL], [YOUR_API_KEY], configuration)
&lt;/code&gt;&lt;/pre&gt;&lt;h4 id="user"&gt;User&lt;/h4&gt;
&lt;p&gt;To identify an user you will need to set an unique identifier with &lt;code&gt;setUserId(id: String)&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="use-the-sdk"&gt;Use the SDK&lt;/h2&gt;
&lt;p&gt;You can access the CappingSDK with &lt;code&gt;Capping.getInstance(context)&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The component responsible for displaying the capping UI should use&lt;/p&gt;</description></item></channel></rss>