Closed josephruscio closed 12 years ago
I just tried this out and it worked for me. Maybe your password is incorrect? I can reset it and send you a new one.
The password is fine, as I said the initial POST to create the new subscription works, it's just the subsequent attempt to fetch the call resource that fails.
Kori Francis at Chargify just replicated the issue with my information. Maybe there's something wrong with how they enabled my closed-beta access to the feature? In any case, as I mentioned, I have the same problem with straight curl. So this is probably an issue on the Chargify API side and not with your reference application. I'll close this as soon as Kori verifies something to that effect.
Yes I have V2 credentials, and more importantly, they're working to on the initial POST from the form provided in this reference implementation to create an account. So my V2 credentials are confirmed to work end-to-end on creating a new subscription, but they fail on the GET request to fetch the call resource using the ID returned in the re-direct.
@josephruscio the initial chargify direct POST uses your api_secret to sign the form post (since it can be considered "public"). The API call portion uses your api_password for a server-to-server operation. Are you using the right ones in the right place?
@moklett I was using the password I was originally provided, but thanks for the insight. This makes a lot more sense now. It looks like my password has just been reset, and it works now.
Good to hear. We'll be making the credentials more self-service soon and beefing up the docs on this feature. We're also working on a better sample app as we speak.
Not sure if this is a problem with this example app or the chargify2 gem or the API itself, but when I attempted to use this app with our testing chargify subdomain, the initial POST to create a new subscription works, but the attempt to query the Call Resource using the call ID (i.e.
chargify.calls.read(params[:call_id])
) fails with a401
:I tried using
curl
on the command line with myapi_id
andapi_password
and got the same401
.