Flicker api integration and sample