### Method

# Goa Object get_oauth_based

#### Declaration [src]

    GoaOAuthBased*
    goa_object_get_oauth_based (
      GoaObject* object
    )

#### Description [src]

Gets the `GoaOAuthBased` instance for the D-Bus interface org.gnome.OnlineAccounts.OAuthBased on `object`, if any.

Gets property | `Goa.Object:oauth-based`

#### Return value

Type: `GoaOAuthBased`

A `GoaOAuthBased` that must be freed with `g_object_unref()` or `NULL` if `object` does not implement the interface.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be `NULL`.