Пример #1
0
        /// <summary>
        /// Retrieve Target offers
        /// </summary>
        /// <exception cref="Adobe.Target.Delivery.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="imsOrgId">The IMS organization ID</param>
        /// <param name="sessionId">This is the &#x60;sessionId&#x60; that should be generated and maintained by the API user for the current session the user is a part of. The &#x60;sessionId&#x60; can be any printable string except a space, ?, or /. It should be between 1 and 128 characters in length. &lt;br&gt;&lt;br&gt; For a particular session, its value must stay the same across multiple requests for the same user since routing to a particular node in the edge cluster, which contains the user profile, is done using the &#x60;sessionId&#x60;. The session is active for 30 minutes on the server side. Therefore, you shouldn’t use a different &#x60;sessionId&#x60; for a particular &#x60;tntId&#x60; or &#x60;thirdPartyId&#x60; within 30 minutes of the last request made with the same &#x60;tntId&#x60; or &#x60;thirdPartyId&#x60;. Otherwise, changes to the profile could be inconsistent and unpredictable. &lt;br&gt;&lt;br&gt;Furthermore, using the same &#x60;sessionId&#x60; with different &#x60;tntId&#x60; or &#x60;thirdPartyId&#x60; may cause unpredictable changes to the profiles.</param>
        /// <param name="deliveryRequest">Delivery Request</param>
        /// <param name="version">This is the &#x60;version&#x60; of at.js. (optional)</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of DeliveryResponse</returns>
        public async System.Threading.Tasks.Task <DeliveryResponse> ExecuteAsync(string imsOrgId, string sessionId, DeliveryRequest deliveryRequest, string version = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Adobe.Target.Delivery.Client.ApiResponse <DeliveryResponse> localVarResponse = await ExecuteWithHttpInfoAsync(imsOrgId, sessionId, deliveryRequest, version, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Пример #2
0
 /// <summary>
 /// Retrieve Target offers
 /// </summary>
 /// <exception cref="Adobe.Target.Delivery.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="imsOrgId">The IMS organization ID</param>
 /// <param name="sessionId">This is the &#x60;sessionId&#x60; that should be generated and maintained by the API user for the current session the user is a part of. The &#x60;sessionId&#x60; can be any printable string except a space, ?, or /. It should be between 1 and 128 characters in length. &lt;br&gt;&lt;br&gt; For a particular session, its value must stay the same across multiple requests for the same user since routing to a particular node in the edge cluster, which contains the user profile, is done using the &#x60;sessionId&#x60;. The session is active for 30 minutes on the server side. Therefore, you shouldn’t use a different &#x60;sessionId&#x60; for a particular &#x60;tntId&#x60; or &#x60;thirdPartyId&#x60; within 30 minutes of the last request made with the same &#x60;tntId&#x60; or &#x60;thirdPartyId&#x60;. Otherwise, changes to the profile could be inconsistent and unpredictable. &lt;br&gt;&lt;br&gt;Furthermore, using the same &#x60;sessionId&#x60; with different &#x60;tntId&#x60; or &#x60;thirdPartyId&#x60; may cause unpredictable changes to the profiles.</param>
 /// <param name="deliveryRequest">Delivery Request</param>
 /// <param name="version">This is the &#x60;version&#x60; of at.js. (optional)</param>
 /// <returns>DeliveryResponse</returns>
 public DeliveryResponse Execute(string imsOrgId, string sessionId, DeliveryRequest deliveryRequest, string version = default(string))
 {
     Adobe.Target.Delivery.Client.ApiResponse <DeliveryResponse> localVarResponse = ExecuteWithHttpInfo(imsOrgId, sessionId, deliveryRequest, version);
     return(localVarResponse.Data);
 }