I don’t know a heck of a lot about using the RTMP libraries themselves, so I’ll leave that for someone else to answer. But as for the Twitch API side of things, that would mainly be to obtain their stream key and the location to ingest the RTMP stream. Check out the API for more info.