The injunction may be granted at the time of commencing the action, or any time afterwards, before judgment by the district court, or the judge thereof, or, in his absence from the county or disqualification, by the county judge, upon its appearing satisfactorily to the court or judge, by the affidavit of the plaintiff or his agent, that the plaintiff is entitled thereto.
Okla. Stat. tit. 12, § 1383