php - Get Request to an API url -
i have signed synonym api.. see the details on page
i having trouble implementing in php code.
if copy , paste link web browser, can see results no problem.
instead of typing word in manually, wish have variable in link relevant word i.e. $variable_with_word_stored
shown below.
http://words.bighugelabs.com/api/2/xxxxxxxx/$variable_with_word_stored/php //format php (i unserialize)..or json..i decode it?
any ideas guys? thanks.
it sounds mean want result calling webpage , store in variable. should looking sending http request page within code.
check out using curl php, can send http request requested url, capture result , parse through json_decode
Comments
Post a Comment