Getting post data from an external application

I’m using a 3rd-party hosted form application that will post data as a set of name-value pairs to an arbitrary URL.

I’d like to take this data and import it into my Yii database.

How should I do this? Should I just create a new controller and point the 3rd-party app to it to send the data, then write some logic in the controller to decode it so I can pass it to the model, or something else?

If the model and controller for the data already exist I would just create a new action (and logic theirin) within that controller to import the data.