Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1]   Go Down

Author Topic: API News  (Read 7959 times)

0 Members and 1 Guest are viewing this topic.

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
API News
« on: June 06, 2016, 23:52:36 »

7 June 2016
Most API functions now also can be filtered by channel count. The new API parameter "channels" is documented here:
https://modarchive.org/index.php?xml-api-usage-channels

The API entry point now also sets the Access-Control-Allow-Origin header, so it is now theoretically possible to use the API through frameworks / languages / etc. that employ Same Origin Policy rules.
« Last Edit: June 08, 2016, 02:47:15 by Saga Musix »
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

m0d

  • Creator of Meow Meow Meow Kitty Song
  • Global Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 1866
  • Original Site Admin/Designer/Coder
    • View Profile
    • Science & Art - Eindhoven.space - RedHeat Music & More
Re: API News
« Reply #1 on: June 12, 2016, 06:53:06 »

Cool
Logged
👨‍💻 Creator, Musician & HF Packet Radio Network Core
🎧 Discover great music via other member's special picks in the MFG
☕️ Get m0d a coffee via Ko-Fi.com
💬 IRC irc.rizon.net #modarchive
💬 Modarchive Discord

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: API News
« Reply #2 on: August 25, 2016, 13:09:52 »

25 August 2016
Sometimes, duplicate modules are merged to only keep one copy of the module. Previously, when trying to access the old module by its ID, this would return an error. Starting from today, there will be a <redirect>$new_module_id</redirect> field present in the XML output of the API in addition to this error. For clients not supporting this new field yet, nothing changes (apart from the error message). But if you want to update your client, you can now check for the presence of a redirect field and read the new module ID from it. Note that only the view_by_moduleid action is affected by this - that is, module searched new return old, merged modules.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker
Pages: [1]   Go Up