Ballerina API Documentation

Connectors of org.wso2.ballerina.connectors.medium package

connector ClientConnector (string accessToken, string clientId, string clientSecret, string refreshToken)

Medium client connector

Parameters:

Parameter NameData TypeDescription
accessTokenstringThe access token of the Medium Application
clientIdstringClient Id of the Medium Application
clientSecretstringClient Secret of the Medium Application
refreshTokenstringThe refresh token of the Medium Application

Actions:

action createProfilePost()

Create Post in authenticated User's profile

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe medium Connector instance
userIdstringID of authenticated user
payloadjsonjson payload containing the post

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action createPublicationPost()

Get List of Contributors for a Publication

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe medium Connector instance
publicationIdstringID of relevant publication
payloadjsonjson payload containing the post

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action getContributors()

Get List of Contributors for a Publication

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe medium Connector instance
publicationIdstringID of relevant publication

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action getProfileInfo()

Get Profile Information

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe medium Connector instance

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action getPublications()

Get List of Publications the user have contributed

Parameters:

Parameter NameData TypeDescription
tClientConnectorThe medium Connector instance
userIdstringID of authenticated user

Return Parameters:

Return VariableData TypeDescription
messageresponse object


Menu

  • Connectors
    • ClientConnector (string accessToken, string clientId, string clientSecret, string refreshToken)
      • createProfilePost(ClientConnector t, string userId, json payload)
      • createPublicationPost(ClientConnector t, string publicationId, json payload)
      • getContributors(ClientConnector t, string publicationId)
      • getProfileInfo(ClientConnector t)
      • getPublications(ClientConnector t, string userId)

Copyright 2017 Ballerina API Documentation