- Регистрация
 - 06.06.2016
 
- Сообщения
 - 92
 
- Благодарностей
 - 7
 
- Баллы
 - 8
 
Hi guys,
I would like to know how i could use zennoposter to call an API which works with curl.
I am not a webdevelopper, so i must be a newbie question...
I think the HTTP option, POST & GET could be helpfull but how do that ?
Here it's the documentation :
/api/guide
POST - launch an order
Parameters
KEY => API key (need to be send through header)
query => the request to generate the order
type => premium / oneshot
lang => fr_fr, en_us, en_gb, es_es, fr_ch, it_it,de_de
Returned Values :
{
"status": "ok",
"query": "string",
"guide_id": "integer",
"type": "string (premium / oneshot)",
}
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
/api/guide/{guide_id}
GET - Get the order
Parameters
KEY => API key (in header)
Returned values
{
"type": "string (premium / oneshost)",
"query": "string",
"locale": "string (language)",
"localeName": "string (language)",
"grammes1": array,
"grammes2": array,
"grammes3": array,
"entities": array
}
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Thank you for the help
								I would like to know how i could use zennoposter to call an API which works with curl.
I am not a webdevelopper, so i must be a newbie question...
I think the HTTP option, POST & GET could be helpfull but how do that ?
Here it's the documentation :
/api/guide
POST - launch an order
Parameters
KEY => API key (need to be send through header)
query => the request to generate the order
type => premium / oneshot
lang => fr_fr, en_us, en_gb, es_es, fr_ch, it_it,de_de
Returned Values :
{
"status": "ok",
"query": "string",
"guide_id": "integer",
"type": "string (premium / oneshot)",
}
			
				Код:
			
		
		
		curl -X POST -d "query=la%20classe%20americaine&lang=fr_fr&type=premium" -H "KEY: \$2y\$10\$uLE.3XEiAaTbLDNw2GcsluhtkFf68jX5j6HFbfkJaCYvWYAABkqZm" -H "accept: application/json" https://website.tld/api/guide/
	/api/guide/{guide_id}
GET - Get the order
Parameters
KEY => API key (in header)
Returned values
{
"type": "string (premium / oneshost)",
"query": "string",
"locale": "string (language)",
"localeName": "string (language)",
"grammes1": array,
"grammes2": array,
"grammes3": array,
"entities": array
}
			
				Код:
			
		
		
		curl -X GET -H "KEY: \$2y\$10\$uLE.3XEiAaTbLDNw2GcsluhtkFf68jX5j6HFbfkJaCYvWYAABkqZm" -H "accept: application/json" https://website.tld/api/guide/ID
with ID sent during the  previous order process
	
