Ballerina API Documentation

Connectors of org.ballerinalang.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 getProfileInfo()

Get Profile Information

Parameters:

Parameter NameData TypeDescription
tClientConnector

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action getContributors()

Get List of Contributors for a Publication

Parameters:

Parameter NameData TypeDescription
tClientConnectorpublicationId: ID of relevant publication
publicationIdstringID of relevant publication

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action getPublications()

Get List of Publications the user have contributed

Parameters:

Parameter NameData TypeDescription
tClientConnectoruserId: ID of authenticated user
userIdstringID of authenticated user

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action createProfilePost()

Create Post in authenticated User's profile

Parameters:

Parameter NameData TypeDescription
tClientConnectoruserId: ID of authenticated user
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
tClientConnectorpublicationId: ID of relevant publication
publicationIdstringID of relevant publication
payloadjsonjson payload containing the post

Return Parameters:

Return VariableData TypeDescription
messageresponse object


Menu

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

Copyright 2017 Ballerina API Documentation