A man from Bradford has been jailed after harassing two family members for money to fund his drug habit.