Name: {name}
Übersetzt seit: {translator_since}
Aus: {from}
Bereits mit Ihnen gearbeitet: {collaboration}
{about}
{fieldofexpertise}
 {name}

Nativy Connect

nativy translations
Description Returns a temporary authentication token for a user, that will valid for a certain amount of time.
URL /connect/user/authtoken

Parameters
api_key  string The public API key of the user. (Details: Authentication )
timestamp  string The current UTC timestamp (seconds from 1/1/1970 until UTC now). (Details: Authentication )
api_sign  string The timestamp encoded with HMAC SHA1 in use of the private key. (Details: Authentication )
username (required) string The username of the user for whom you need an Authentication Token.
password (required) string The user's password.

Example call

    	        $url = 'https://webapp.nativy.com/connect/user/authtoken';
			    $partner_api_key = 'iQU5lBuEjYFax2EU3o>bp*u02K^Bmie3d}pg-pU^MZ&%mobYM&x7SHY+41u7PHEh';
			    $partner_private_key = '4i2j_F|=lUqNRxPMxtxsX-veXJ)i+w(hq[_J&(r{Pn[jyT&)xt*Usp3K%B_jv{tP';
			    $partner_timestamp = gmdate('U');
			    $hmac = hash_hmac('sha1', $partner_timestamp, $partner_private_key); 
									 
			    $tokenrequest = array(
			        'api_key' => $partner_api_key,
			        'api_sign' => $hmac,
			        'timestamp' => $partner_timestamp,
			        'username' => 'testusername', 
			        'password' => 'XXXXXXXXTestPasswordXXXXXX'
			    );
			 
			    $myrequest = json_encode($tokenrequest);
			 
			    $ch = curl_init($url);
			    curl_setopt($ch, CURLOPT_URL, $url); 
			    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
			    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
			    curl_setopt($ch, CURLOPT_POST, 1); 
			    curl_setopt($ch, CURLOPT_POSTFIELDS, $myrequest);
			    $response = curl_exec($ch);
			    curl_close($ch);
			 
			    echo ($response);
            

Return values

Posting an Authentication Token returns an object, containing a field, called tmpl.

tmpl  string The authentication token.

Example return values

            {
                "tmpl":"78431485-edb4-4b9e-805d-a91f4e9664e1"
            }