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

diferent usernames #11

Open
jcasoft opened this issue Dec 12, 2012 · 4 comments
Open

diferent usernames #11

jcasoft opened this issue Dec 12, 2012 · 4 comments

Comments

@jcasoft
Copy link

jcasoft commented Dec 12, 2012

it's possible to send a diferent $username and $password to get de associated data to this user, with php pass parameters to Sugar_REST like:
$username= $_GET['usr'];
$password = $_GET['pwd'];
Example: example.php&usr=aaaaa&pwd=bbbbb

@asakusuma
Copy link
Owner

Not quite sure I follow your question/comment. Are you trying to query a user's information using a different user's credentials?

@cliffordwhansen
Copy link

I know this question is old, but I'd say if I understand correctly yes it is possible use different credentials, you would just need to create a second instance of the class with the new credentials.

Also I believe this would not be part of this code, but would be in the calling script.

@kendantinio
Copy link

where do i register to get user and password?

@rnique
Copy link

rnique commented Apr 9, 2015

Hi,

You mean to set these variables?:

$sugar->setUsername('user');
$sugar->setPassword('password');

In this case the user must be registered in SugarCRM to which you are
connecting.
You may use several users, as posted above, for each one you need to create
separate instance of the object.

Regards,

Roman Nique Lysenko | Arquitecto de Software
RPC: (+51) 997 095242

2015-03-31 3:59 GMT-05:00 kendantinio [email protected]:

where do i register to get user and password?


Reply to this email directly or view it on GitHub
#11 (comment)
.

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

5 participants