Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.92 KB | None | 0 0
  1.   <script>
  2.  
  3.           $.ajax({
  4.               url: "https://test.diglin.eu/api/languages/unique",
  5.               type: "post",
  6.               async: true,
  7.               dataType: 'json',
  8.               success: function (response) {
  9.                   console.log(response);
  10.               },
  11.               error: function () {
  12.                   console.log('NOK setFileList');
  13.               }
  14.           });
  15.  
  16.           var request = {
  17.               language: 'nl_NL'
  18.           };
  19.  
  20.           $.ajax({
  21.               url: "https://test.diglin.eu/api/media/fileList",
  22.               type: "post",
  23.               async: true,
  24.               data: request,
  25.               dataType: 'json',
  26.               success: function (response) {
  27.                   console.log(response);
  28.               },
  29.               error: function () {
  30.                   console.log('NOK setFileList');
  31.               }
  32.           });
  33.       </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement