Mezeo Ready Developer Center
February 09, 2012, 03:26:38 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
Author Topic: How to use access key and secret key ?  (Read 497 times)
nandan
Newbie
*
Posts: 4


View Profile
« on: July 15, 2010, 01:08:22 PM »

Hi,

I wanted to ask how to use access key and secret for accessing mezeo cloud ? I'm a newbie to this. I have username/password which I use in 'curl -u' to access the cloud. I'm writing a program in C using curl to connect to your cloud. Now how do I modify the HTTP header to connect (and use access and secret key) to mezeo cloud or how do I put access key and secret key in command line curl to get access ?

Thanks !
Logged
gtillman
Mezeo Employee
Newbie
*****
Posts: 3


View Profile
« Reply #1 on: July 15, 2010, 01:40:16 PM »

Hi nandan,

The access key and secret key that you see listed in your account info in the web client are for use with our upcoming S3 compatibility API.

This will be part of the Mezeo Cloud Storage Platform v3.0 and will allow applications written for Amazon's S3 to use Mezeo-based cloud storage.

Our developer site contains examples that show how to access the Mezeo API from various languages.  These should help you get started, but if you have any specific questions please do ask in the forums.

Regards,

--gordon
Logged
nandan
Newbie
*
Posts: 4


View Profile
« Reply #2 on: July 15, 2010, 02:29:58 PM »

Thanks a lot !

In java code examples I found a parameter called the API key and in the this curl example

curl -u $cred -H ‘X-Client-Specification: 2’ –H ‘X-Cloud-Key: $Key’\ -X GET https://api.example.com/v2 | xml fo

$Key = API key

My question is which one of the two access key and secret is the API key ? I used the following combinations:
accesskey:secret key ,only access key , only secret key.

It gives me the following errors:
curl: (6) Couldn't resolve host '2’'
curl: (6) Couldn't resolve host '–H'
curl: (6) Couldn't resolve host '‘X-Cloud-Key:'
curl: (6) Couldn't resolve host '’ -X'
curl: (6) Couldn't resolve host 'GET'
Logged
Mark Aldred
Newbie
*
Posts: 16


View Profile
« Reply #3 on: July 16, 2010, 08:33:18 AM »

X-Cloud-Key is neither the access key nor the secret key.  It is an optional argument used to identify the client implementation.  If you want to write a C/C++ program that access the mezeo service have a look at libcurl.  You pass the PCS user name and password using curl_easy_setopt(CURLOPT_USRENAME) and curl_easy_setopt(CURLOPT_PASSWORD).  There is *much* more to using libcurl but that is how you specify the credentials. 

Mezeo currently does not have an interface that honors the access key / secret key pair.  That will be supported in V3.  You need to use the username and password until V3 is ready.
Logged
Travis McLane
Mezeo Employee
Newbie
*****
Posts: 21



View Profile
« Reply #4 on: July 23, 2010, 10:20:51 AM »

Thank you Mark.

To clarify a  bit more:

The curl examples require you to set environment variables to fill in the variables with '$' in front  of them.
This depends on the shell you are using but with 'bash' you would do the following:

export cred=testuser@test.com:testpassword
export Key=NoneProvided

Then running that command will fill in the appropriate values automatically.

We are not enforcing the API Key at this time (however some installations may require submitting one for access to the API).

The Access Key / Secret Key is currently only usable in beta form using the S3-Compatible APIs. 
The V2 API does not understand this form of authentication at this time.  (This may change in the future).

The Access Key / Secret Key are used in the same manner as S3 credentials received from Amazon.



Logged
Pages: [1]
 
Jump to:  

© Mezeo Software. All rights reserved. | Privacy Policies | Contact Us | Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC