add api, and the friendship data download task.