Feature #5084

Enchange method to get DELL info

Added by ddurieux over 6 years ago. Updated almost 6 years ago.

Status:ClosedStart date:10/09/2014
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:Framework
Target version:1.7.0

Warranty_Status_API_Functional_Specification.pdf (616 KB) tsmr, 10/12/2014 09:57 AM

0002-pass-api-key-to-selectSupplier-function.patch Magnifier (4.59 KB) guillomovitch, 01/02/2015 12:52 AM

0001-add-supplier_key-field-to-supplier-config.patch Magnifier (7.05 KB) guillomovitch, 01/02/2015 12:52 AM

0003-content-analysis-cleanup.patch Magnifier (7.84 KB) guillomovitch, 01/02/2015 12:52 AM

0004-use-API-interface-rather-than-SOAP-interface.patch Magnifier (8.75 KB) guillomovitch, 01/02/2015 12:52 AM

Associated revisions

Revision 217
Added by tsmr over 6 years ago

Enchange method to get DELL info to 0.85 version. fix #5084

History

#1 Updated by tsmr over 6 years ago

  • Category set to Framework

But how to found api key ?

#2 Updated by tsmr over 6 years ago

Example / Doc

$serial = "5H4PRY1";
$url = 'https://api.dell.com/support/v2/assetinfo/warranty/tags.json?svctags='.$serial.'&apikey=1adecee8a60444738f280aad1cd87d0e';

echo $url."<br />";

$json = file_get_contents($url);
$obj = json_decode($json);
var_dump($obj->GetAssetWarrantyResponse->GetAssetWarrantyResult->Response->DellAsset);

var_dump($obj->GetAssetWarrantyResponse->GetAssetWarrantyResult->Response->DellAsset->Warranties);

#3 Updated by ddurieux over 6 years ago

Dell has 3 or 4 key for this api, so we can use the apikey it has set in the description

#4 Updated by guillomovitch over 6 years ago

The following set of patches implements this method, using a user-provided API key instead of an hardcoded one.

The actual response is a list of warranty items, with different end dates, and different ServiceLevelCode. As I didn't find the definition of those levels in the spec, I hardcoded usage of the fist one, but this can probably get enhanced.

As a side note, it also fixes issue #5008.

#5 Updated by tsmr over 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r217.

#6 Updated by tsmr over 6 years ago

  • Target version changed from 1.6.1 to 1.7.0

#7 Updated by orthagh almost 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF