开发者

REST: Calling a javascript function to send an action to API

开发者 https://www.devze.com 2023-02-04 03:30 出处:网络
I\'m confused with these two: Calling a javascript function to send an action to API. <script type=\'text/javascript\'>

I'm confused with these two:

  1. Calling a javascript function to send an action to API.

    <script type='text/javascript'>

    sendAction( 'view', '24EH1723322222A3', '42', 'F3D4E3BE31EE3FA069F5434DB7EC2E34', '/explorer.form?trackid=1369718', 'Fatboy%20Slim%20-%20The%20Rockafeller%20Skank', '/covers/1369718.jpg', null);

    </script>

  2. The example call below (Calling another javascript function to send an action to API).

    <script type='text/javascript'>

    getRecommendations( 'otherusersalsoviewed', '24EH1723322222A3', '42');

    </script>

Does this mean we nee开发者_JAVA技巧d to have two different calls ?

Thanks, regards. John Maxim


The sendAction function is to send recommendations and the getRecommendation function is to retrieve the recommendations.

So, two different actions, two functions.

0

精彩评论

暂无评论...
验证码 换一张
取 消