API Info
  • We working under SSL on the production only
  • We using security with user name + digest
RESTFUL API
  • Amsalem provide full RESTFUL API.
  • We are working HTTP POST RESTFUL WEB API.
  • URL = https://secure.amsalem.com/ API/ ControllerName/ MethodName
SOAP Compatibility
  • Amsalem provide HTTP POST SOAP API.
  • In order to generate client from WSDL, please open SOAP Service
Security Info
  • UserName - your user name
  • AccessKey - your access key
  • Salt - random number(larger then 8 digits)
  • Digest - output from the user credentials
  • ExtraField - unique field in each method
How to compute the Digest? (C# Code snippet)
string forDigest = ExtraField + UserName + Salt + AccessKey;
byte[] encoded = Encoding.UTF8.GetBytes(forDigest);
SHA512 sha = new SHA512CryptoServiceProvider();
string Digest = Convert.ToBase64String(sha.ComputeHash(encoded));