OAuth Request Get Token


I would like to connect twitter to business central.

Twitter uses for Third Party Service OAuth 1.0.

I would like to implement this in BC V17 On-Prem.

In BC V17 I’m getting the warning that the Codeunit “OAuth Management” is deprecated and I should use the OAuth System Module.

For the Authentification with Twitter I need a function for getting the request token (equal to the function “GetRequestToken” in the OAuth Management).

Also I need a similar function to the “GetAccessToken” function from the OAuth Management.

in this function I need to pass a temporary pin, generated by twitter (user needs to type in the pin manually in BC).

Does anyone know how I could implement this with the new OAuth System Module?