Yetiforcecrm: [Question] How to connect with OAuth2?

Created on 24 May 2018  Â·  5Comments  Â·  Source: YetiForceCompany/YetiForceCRM

Can't find anything at https://yetiforce.com/en/knowledge-base/documentation/developer-documentation on OAuth or API.

What are the API URL details or where can I find them please?

Maybe the Access key in My Preferences?

Thank you.

âť” question

Most helpful comment

The code responsible for API can be found here: https://github.com/YetiForceCompany/YetiForceCRM/tree/developer/api/webservice

Unfortunately right now we don’t have any documentation that describes it, we’re working on it. However, it shouldn’t be difficult for a good programmer.

Keep in mind that there are 2 tools in the panel in the Integration category, one of them configures apps that can access the system, the other one configures users who can have access to the system (an example of that configuration for Portal can be found on GitDeveloper)

All 5 comments

The code responsible for API can be found here: https://github.com/YetiForceCompany/YetiForceCRM/tree/developer/api/webservice

Unfortunately right now we don’t have any documentation that describes it, we’re working on it. However, it shouldn’t be difficult for a good programmer.

Keep in mind that there are 2 tools in the panel in the Integration category, one of them configures apps that can access the system, the other one configures users who can have access to the system (an example of that configuration for Portal can be found on GitDeveloper)

@paula-w, @bpabiszczak, Thank you for that. I get this error:

{"status":0,"error":{"message":"Webservice - Service is not active"}}

How do I activate the service?

Also, in the Webservice module I can only add a Portal 'Type' when I try to add a new Key. How do I add a standard key to access the API externally? Or is that the key in user preferences?

Lastly, do I use Basic Auth or OAuth 2.0?

Thank you.

@ra-uk

{"status":0,"error":{"message":"Webservice - Service is not active"}}

First you must activate webservice from configuration file
https://github.com/YetiForceCompany/YetiForceCRM/blob/developer/config/api.php#L13
just uncomment what you interested in

Also, in the Webservice module I can only add a Portal 'Type' when I try to add a new Key. How do I add a standard key to access the API externally? Or is that the key in user preferences?

There is no standard global API KEY you can use.
You must define "Portal" from which you are going to make webservice calls.
Portal in other words is a machine from which you want to send request through API.
Add new portal and you will have a key.

Lastly, do I use Basic Auth or OAuth 2.0?

Basic Auth

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ezbank picture ezbank  Â·  3Comments

liberox picture liberox  Â·  3Comments

rubysown picture rubysown  Â·  3Comments

Raggazzoo picture Raggazzoo  Â·  3Comments

skramanzia picture skramanzia  Â·  3Comments