Comments

8 comments

  • Official comment
    Avatar
    Josh Brown

     

    Thanks for your post! Hootsuite has a few different APIs around users and authentication:

    • If you are using our REST API then you can use the /v1/me endpoint to find information about the authenticated user.
    • If you're building an iFrame app you can calculate a hash to verify the Hootsuite's user ID.
    • We have a members API for adjusting members within organizations.
    • You can use our SCIM API to provision and de-provision Hootsuite users and SAML for helping users log in from another identity provider.

    What kind of help are you looking for?

     

     

  • Avatar
    Team PostmastR

    I'm looking for user endpoint required for authentication while integrating Hootsuite Rest API

  • Avatar
    Josh Brown

    Authentication with the REST API happens according to the OAuth 2.0 spec. The endpoints involved would be https://apis.hootsuite.com/auth/oauth/v2/authorize and https://apis.hootsuite.com/auth/oauth/v2/token. You can find out more about how they work here:  https://developer.hootsuite.com/v1.0/docs/api-authentication

  • Avatar
    Team PostmastR

    Hey Josh,

    Thanks much, got through it. Another help if I may ask - I'm getting error 1100 while setting up a call to schedule a message.

    Any advice?

  • Avatar
    Josh Brown

    No problem! That error can mean that there is a syntax error with the JSON you are sending to Hootsuite.

    There's a sample of the syntax here - if you're stuck, would you mind posting a snippet of your code? (Make sure to censor out any secrets or tokens.)

  • Avatar
    Team PostmastR

    I did follow your syntax sample but stuck with setting up this call. I'm actually integrating your API with Bubble. Here's an error that I am getting - 

  • Avatar
    Team PostmastR

    Hey Josh, I figured it was an error at my end. This one is working. However, I'm not able to attach media (image) to my message. Can I confirm if there's a separate call to do that?

  • Avatar
    Josh Brown

    Glad you were able to figure it out! 

    Yes, the flow for attaching an image is a little bit different. You'll need to set up a Twitter app and use the Ow.ly API to upload the image, then you can attach it to your Hootsuite message when you publish it. We have some documentation on the flow here: https://developer.hootsuite.com/v1.0/docs/uploading-images

Please sign in to leave a comment.

Powered by Zendesk