summaryrefslogtreecommitdiff
path: root/lib/rms.php
blob: 1e76d537212d83d0469d45e5915943d3940afc2f (plain)
1
2
3
4
5
6
7
8
9
10
<?php

const RMS_API_BASE = 'https://rms.api.bbc.co.uk/v2';
const RMS_SOUNDS_HOME = '/experience/inline/listen/sign-in';
const RMS_SOUNDS_CONTAINER = '/experience/inline/container';
const RMS_SOUNDS_PLAYABLE = '/experience/inline/play';

function rms_fetch(string $path): stdClass {
	return json_decode(file_get_contents(RMS_API_BASE . $path));
}