http://www.dscredstorm.com/getisbninfo.aspx
I'm trying to use Amazon's api. I downloaded their example code, which is a C# windows form app but I figured it should work for a C# website also, correct?
SignedRequestHelper.cs is a file that appears to have some functionality that I need to send a signed request. It's namespace is AmazonProductAdvtApi. I put the file in App_Code/Csharp and I added 'using AmazonProductAdvtApi;' to my page.
But I get this error: 'AmazonProductAdvtApi.SignedRequestHelper' is inaccessible due to its protection level
Why?
More info: SignedRequestHelper helper = new SignedRequestHelper(accessKeyId, secretKey, destination);
See: http://www.dscredstorm.com/getisbninfo.aspx
Here is the class declaration for SignedRequestHelper.cs:
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Security.Cryptography;
namespace AmazonProductAdvtApi
{
class SignedRequestHelper
...
... some private consts and vars...
public SignedRequestHelper(string awsAccessKeyId, string awsSecretKey, string destination)
{
this.endPoint = destination.ToLower();
this.akid = awsAccessKeyId;
this.secret = Encoding.UTF8.GetBytes(awsSecretKey);
this.signer = new HMACSHA256(this.secret);
}