Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. $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}'));
  2. $cmpdname;
  3. $cmpdname = $info3->SDQOutputSet[0]->rows[0]->cmpdname;
  4. echo 'NAME '.$info3->SDQOutputSet[0]->rows[0]->cmpdname.'<br>';
  5.  
  6. //--------------------------------------------------\\
  7. $text = $cmpdname;
  8. $info4 = json_decode(file_get_contents('https://translate.yandex.net/api/v1.5/tr.json/translate?key=KEY&text='.$cmpdname.'&lang=en-ru'));
  9.  
  10. echo 'TRANSLATE '.$info4->text[0];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement