Skip to main content

Hi Folks,

 

Can you please help me in pulling some data from Trimble connect by using http caller and API?

I do have my API but I don’t know how to use it and how to setup my http caller to pull my images from there (what Request URL should I use to have this), any help will be appreciated.

 

Cheers,

Hi @rawansaleh,

This is a good place to start with FME and API's https://knowledge.safe.com/articles/89369/getting-started-with-apis-1.html

You should also have a good look at the API documentation.


Do you have any experience in connecting with API's? If none, the links @itay posted are quite helpful. The Advanced API Calls article works for me because I like working examples and learn that way.

 

Have you checked the TC API documentation? When I started with this, I first tried to get the syntax right using PostMan. Then I transferred the request to the HTTPCaller in FME.

If I read correctly, the steps are:

(disclaimer, I have no Trimble Connect account so can't test or reproduce anything, this is interpretation of documentation + experience...)

  • Get the authentication process done.
    • Register, subscribe, receive Consumer Key and Consumer secret.
  • Get the token.
  • Start doing Requests
    • Put the token in the request header. (replace <access_token> with the token you got in the previous step)

Base URLs looks like to be:

devhttps://app.stage.connect.trimble.com/tc/api/2.0prodhttps://app.connect.trimble.com/tc/api/2.0

 

Example: GET companies


@rawansaleh

Feel free to test this Web Connection for Trimble Connect:

 

https://hub.safe.com/publishers/safe-sandbox/web-connections/trimble-connect

We had a few requests for this already so I tried to set up a Web Connection that will take care of this step: https://app.connect.trimble.com/tc/static/apidoc.html#header-step-3-get-tid-access-token

I also do not have access to Trimble Connect and therefore can't verify if this works as expected. So I published it as a Safe Software Sandbox item on the FME Hub for now.

I hope this helps.


@rawansaleh

Feel free to test this Web Connection for Trimble Connect:

 

https://hub.safe.com/publishers/safe-sandbox/web-connections/trimble-connect

We had a few requests for this already so I tried to set up a Web Connection that will take care of this step: https://app.connect.trimble.com/tc/static/apidoc.html#header-step-3-get-tid-access-token

I also do not have access to Trimble Connect and therefore can't verify if this works as expected. So I published it as a Safe Software Sandbox item on the FME Hub for now.

I hope this helps.

ooh that's great! I will try this and come back to you with the result :)

 

Thank you !


Do you have any experience in connecting with API's? If none, the links @itay posted are quite helpful. The Advanced API Calls article works for me because I like working examples and learn that way.

 

Have you checked the TC API documentation? When I started with this, I first tried to get the syntax right using PostMan. Then I transferred the request to the HTTPCaller in FME.

If I read correctly, the steps are:

(disclaimer, I have no Trimble Connect account so can't test or reproduce anything, this is interpretation of documentation + experience...)

  • Get the authentication process done.
    • Register, subscribe, receive Consumer Key and Consumer secret.
  • Get the token.
  • Start doing Requests
    • Put the token in the request header. (replace <access_token> with the token you got in the previous step)

Base URLs looks like to be:

devhttps://app.stage.connect.trimble.com/tc/api/2.0prodhttps://app.connect.trimble.com/tc/api/2.0

 

Example: GET companies

Thank you for sending all these details, I will have a look on the provided links to see if I could set up this.


Do you have any experience in connecting with API's? If none, the links @itay posted are quite helpful. The Advanced API Calls article works for me because I like working examples and learn that way.

 

Have you checked the TC API documentation? When I started with this, I first tried to get the syntax right using PostMan. Then I transferred the request to the HTTPCaller in FME.

If I read correctly, the steps are:

(disclaimer, I have no Trimble Connect account so can't test or reproduce anything, this is interpretation of documentation + experience...)

  • Get the authentication process done.
    • Register, subscribe, receive Consumer Key and Consumer secret.
  • Get the token.
  • Start doing Requests
    • Put the token in the request header. (replace <access_token> with the token you got in the previous step)

Base URLs looks like to be:

devhttps://app.stage.connect.trimble.com/tc/api/2.0prodhttps://app.connect.trimble.com/tc/api/2.0

 

Example: GET companies

Hi @nielsgerrits

 

I’m trying to follow the steps in the following link for generating the token for Trimble Connect and I’m trying to use the Postman to authenticate but I got an error state that “this user doesn’t exist”

Do you know how could I fix this?

 


Hi @nielsgerrits

 

I’m trying to follow the steps in the following link for generating the token for Trimble Connect and I’m trying to use the Postman to authenticate but I got an error state that “this user doesn’t exist”

Do you know how could I fix this?

 

Hard to say. Debugging without an account is difficult 🙂 Probably the best solution is to supply the connection information to @gerhardatsafe to give him a chance to test / debug the WebConnection he created.

Be sure you connect to the correct hosts as documented.

Also I can imagine it takes some time for the underlying systems to sync, so if you just got the user registered maybe give it a couple of hours and try again. Especially in a staging environment, which might be not as fast as production.


ooh that's great! I will try this and come back to you with the result :)

 

Thank you !

@rawansaleh how did it work out?


@rawansaleh how did it work out?

@nielsgerrits I couldn't test this, there was a problem with my account in Trimble Connect and I Couldn't generate the toekn. I sent a support call to Trimble connect but they said they will try to fix my account and I didn't hear back from them

If any updates happened, I will let you know.


Reply