REST: Calling a javascript function to send an action to API
I'm confused with these two:
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>
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.
精彩评论