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
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
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
publicationIdstringID of relevant publication

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action getProfileInfo()

Get Profile Information

Parameters:

Parameter NameData TypeDescription

Return Parameters:

Return VariableData TypeDescription
messageresponse object

action getPublications()

Get List of Publications the user have contributed

Parameters:

Parameter NameData TypeDescription
userIdstringID of authenticated user

Return Parameters:

Return VariableData TypeDescription
messageresponse object


Menu

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

Copyright 2017 Ballerina API Documentation