flicker api programming