Are you having trouble authenticating against the API? Or is there a
specific call you're having trouble with?
Adam
I see nothing obviously wrong (I don't know C#) with your code. You
don't need to supply your Google account here - the request token is
used to generate a URI where you can visit with your Google account to
validate.
Have a look here for an example of tested Oauth code:
https://github.com/adamboduch/spotsh/blob/master/src/spotsh/api.py
Adam
Sorry for the confusion - I'm not suggesting you learn Python. I
thought that example might help you diagnose the problem you're having.
No, we don't have a C# example as we've had no requests for one. Also,
we don't have any in-house C# experts. I'll officially deem this a
request to include a C# example in the documentation.
As for the SpotCloud API documentation reference, this is an ongoing
effort. We're always eager to here how we can improve on it - so if you
could give me some less obscure suggestions, I'd be more than happy to
take care of it.
I'm here to help assist you with your connection troubles, so feel free
to keep me posted on how its going.
Adam
Let me try and replicate your issue. I'll post some feedback here.
Adam
As far as I know, there is no way to circumvent the manual token
authorization. However, once you've authorized the token - you can
reuse it. This is what spotsh does. Once you have an authorized token,
you can store it for use later on.
Adam
https://spotcloud.appspot.com/api/v1/buyer/hardware/list.xml
The providers list is deprecated. It is preferred to get the offer (the
hardware) and create instances based on this.
The reason being, before, you had to query the provider list based on
location. Then, you would have to find the hardware you wanted to use -
offered by this provider.
The create instance API used to require both the provider ID and the
hardware ID as parameters. Now it only requires the offer (hardware)
ID. You can query offers the same way you would in the user interface.
So this approach is much more streamlined.
Let me know if you need additional assistance.
Adam