refactored leafly request sending