-
Notifications
You must be signed in to change notification settings - Fork 4
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
Unable to use the API #2
Comments
@alvarosantillana I bump the version and update the composer json. please let me know if you more issues. |
Hi Sam, Even though I have re-downloaded all your files again, I still see the same error: ======================================================================================= Problem 1 ======================================================================================= I also added these lines to composer.json: "require": { ======================================================================================= Any suggestion?. Kind regards, |
Hi @alvarosantillana ,
can you delete composer.lock file and try again? |
Hi Sam,
I’m ashamed with you but this thing is still not working. This is my current json file:
============================================================================
{
"name": "orangehrm/api-client-php",
"type": "library",
"description": "OrangeHRM API client",
"keywords": ["REST","api"],
"authors": [
{
"name": "Samantha Jayasinghe",
"email": "samanthaj@orangehrm.com"
}
],
"require-dev": {
"phpunit/phpunit": "4.8"
},
"require": {
"guzzlehttp/guzzle": "~6.0",
"php": ">=7",
"orangehrm/api-client-php": "1.2.4"
},
"autoload": {
"psr-4": {
"Orangehrm\\": "lib/"
}
},
"extra": {
"branch-alias": {
"dev-master": "^1.2.4-dev"
}
},
"license": [
"GPL-2.0"
]
}
And as soon as I run the command composer install or composer update I get this:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package orangehrm/api-client-php No version set (parsed as 1.0.0) is satisfiable by orangehrm/api-client-php[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.
Sorry for bothering you. Regards,
Alvaro Santillana
アルバロ サンティジャーナ
Chief Information Officer
Intelligenza Solutions for Business
Paseo de la Reforma 296 - 38th floor
Juárez. Mexico City, 06600
Mexico. +52 55 8421 5100 | USA. +1 347 305 1002
www.intelligenza.com.mx <https://www.intelligenza.com.mx/> | alvarosantillana@intelligenza.com.mx <mailto:alvarosantillana@intelligenza.com.mx>
Este correo electronico es confidencial y/o puede contener informacion privilegiada.
Si usted no es su destinatario o no es alguna persona autorizada por este para recibir sus correos electronicos, NO debera usted utilizar, copiar, revelar, o tomar ninguna accion basada en este correo electronico o cualquier otra informacion incluida en el, favor de notificar al remitente de inmediato mediante el reenvio de este correo electronico y borrar a continuacion totalmente este correo electronico y sus anexos.
Nota: Los acentos y caracteres especiales fueron omitidos para su correcta lectura en cualquier medio electronico.
This e-mail is confidential and/or may contain privileged information.
If you are not the addressee or authorised to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any other information herein, please advise the sender immediately by reply this e-mail and delete this e-mail and its attachments.
De: Samantha Jayasinghe <notifications@github.com>
Enviado el: Monday, September 16, 2019 11:15 PM
Para: orangehrm/api-client-php <api-client-php@noreply.github.com>
CC: alvarosantillana <alvarosantillana@gmail.com>; Mention <mention@noreply.github.com>
Asunto: Re: [orangehrm/api-client-php] Unable to use the API (#2)
Hi @alvarosantillana <https://github.com/alvarosantillana> ,
I have tested with the following composer json and seems working fine
{
"require": {
"php": ">=7",
"orangehrm/api-client-php": "1.2.4"
}
}
can you delete composer.lock file and try again?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2?email_source=notifications&email_token=ANDACIXJKG5JMVJ6JTLRCYTQKBKUFA5CNFSM4ITY6G2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD63HJMI#issuecomment-532051121> , or mute the thread <https://github.com/notifications/unsubscribe-auth/ANDACIR2GIQCSKVNRCU2TZTQKBKUFANCNFSM4ITY6G2A> . <https://github.com/notifications/beacon/ANDACIQGRBDGOXJOT4AQC6TQKBKUFA5CNFSM4ITY6G2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD63HJMI.gif>
|
I have been trying to use your ORANGEHRM API code with no success. Would you mind to give me a hand to see what is the problem?
This is what I get:
===========================================================
root@global [/home/intellig/www/test/orange]# php /usr/local/bin/composer require orangehrm/api-client-php:1.2.3
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
Installation failed, reverting ./composer.json to its original content.
========================================================
I have tried by changing version “1.2.3” to “1.2.*” but does not work.
I hope you can help. Thanks in advance,
The text was updated successfully, but these errors were encountered: