Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this class be used with SuiteCRM ondemand service #32

Open
eslam-mahmoud opened this issue Sep 27, 2016 · 1 comment
Open

Can this class be used with SuiteCRM ondemand service #32

eslam-mahmoud opened this issue Sep 27, 2016 · 1 comment

Comments

@eslam-mahmoud
Copy link

I am trying to use this class with http://demo.suiteondemand.com demo account
if i set the url to be http://demo.suiteondemand.com/rest/v7/ or http://demo.suiteondemand.com/rest/v7.7/ or http://demo.suiteondemand.com/rest/v7_7/ it does not work

protected 'reasonPhrase' => string 'Not Found' (length=9)
protected 'statusCode' => int 404
protected 'info' =>
array (size=26)
'url' => string 'http://demo.suiteondemand.com/rest/v7.7/oauth2/token' (length=52)
'content_type' => string 'text/html; charset=iso-8859-1' (length=29)
'http_code' => int 404
'header_size' => int 197
'request_size' => int 338
'filetime' => int -1
'ssl_verify_result' => int 0
'redirect_count' => int 0

but i searched for the API url i found this https://www.suitecrm.com/forum/suitecrm-7-0-discussion/5568-suite-ondemand-and-rest-api

http://.suiteondemand.com/service/v4_1/rest.php

so i used it as url but got that error

object(Guzzle\Common\Exception\RuntimeException)[139]
protected 'message' => string 'Unable to parse response body into JSON: 4' (length=42)
private 'string' (Exception) => string '' (length=0)
protected 'code' => int 0
protected 'file' => string '/vagrant/vendor/guzzle/guzzle/src/Guzzle/Http/Message/Response.php' (length=66)
protected 'line' => int 861
private 'trace' (Exception) =>
array (size=4)
0 =>
array (size=6)
'file' => string '/vagrant/vendor/spinegar/sugar7wrapper/src/Spinegar/Sugar7Wrapper/Clients/Guzzle.php' (length=84)
'line' => int 87
'function' => string 'json' (length=4)
'class' => string 'Guzzle\Http\Message\Response' (length=28)
'type' => string '->' (length=2)
'args' =>
array (size=0)

Any ideas ?

@spinegar
Copy link
Owner

spinegar commented Oct 16, 2016

Set the url to something like

https://YourSugarInstance/rest/v10/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants