Click or drag to resize

SKMGetProductVariables Method

Returns the product variables such as "uid", "pid", and "hsum".

Namespace:  SKGL
Assembly:  SKM (in SKM.dll) Version: 4.0.2.6 (4.0.2.6)
Syntax
public static ProductVariables GetProductVariables(
	string username,
	string password,
	string productID,
	WebProxy proxy = null
)

Parameters

username
Type: SystemString
Your username
password
Type: SystemString
Your password
productID
Type: SystemString
The desired product ID
proxy (Optional)
Type: System.NetWebProxy
(Optional) The proxy settings.

Return Value

Type: ProductVariables
The "uid","pid", and "hsum" variables
Examples
This will get pid, uid and hsum.
C#
public void GetProductVariables()
{
   var listOfProducts = SKGL.SKM.ListUserProducts("username", "password");

   //variables needed in for instance validation/activation
   //note, First requires System.Linq.
   var productVar = SKGL.SKM.GetProductVariables("username","password", listOfProducts.First().Value);

   Debug.WriteLine("The uid=" + productVar.UID + ", pid=" + productVar.PID + " and hsum=" + productVar.HSUM);
}
See Also