結果 : how to call an api in javascript with examples