PHP API v2

A bunch of tests use the three lines above, just with different text. Can we extract these into a `prepare_request` function?