Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $info3 = json_decode(file_get_contents('https://pubchem.ncbi.nlm.nih.gov/sdq/sdqagent.cgi?infmt=json&outfmt=json&query={"select":"*","collection":"compound","where":{"ands":[{"input":{"type":"netcachekey","idtype":"cid","key":"dTLQqI6F6zncE-kKa3KgGrWaavo1_d6QpLXF3L-k192_ves"}}]},"order":["relevancescore,desc"],"start":1,"limit":10,"width":1000000,"listids":0}'));
- $cmpdname;
- $cmpdname = $info3->SDQOutputSet[0]->rows[0]->cmpdname;
- echo 'NAME '.$info3->SDQOutputSet[0]->rows[0]->cmpdname.'<br>';
- //--------------------------------------------------\\
- $text = $cmpdname;
- $info4 = json_decode(file_get_contents('https://translate.yandex.net/api/v1.5/tr.json/translate?key=KEY&text='.$cmpdname.'&lang=en-ru'));
- echo 'TRANSLATE '.$info4->text[0];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement