I want to develop a python script to retrieve data from the Primavera API for my firm. I do not have any idea where to start.I saw a couple of articles where getting data from API's was fairly simple task using few lines of python code. However this doesn't seem to be the case here. Can anyone please help!
Asked
Active
Viewed 1,886 times
1
-
Why aren't the python examples you've seen working for you? Are you trying to pull different data? It'd be useful to provide additional information about what information, specifically, you're looking to query. In addition, it would help focus the answers if you provided a list of what web service or API calls you were trying to work with, and what the results were. – Jeremy Caney Jun 12 '20 at 19:48
-
Hey, thanks for helping out. But Primavera is a paid software, and I was asked to get access to all the personal projects etc of a particular firm. I tried installing the API and running it on my SQL server. But it was throwing an error saying that the login credentials are not valid. – Gautam Shah Jun 15 '20 at 05:23
1 Answers
1
Primavera P6 API uses Java, so you have 3 choices:
- Use Python Java bridge
- Write the code in Java
- Use Python to connect to Primavera P6 Web Services (another Primavera integration technology)

primavera-expert
- 26
- 1
-
Given the wording of the question, I'd assume the OP is trying to pursue the third option. Can you provide an example of what the python code would look like to access the data? At minimum, providing a quick overview of the relevant web service end points would probably help the OP solve the issue. – Jeremy Caney Jun 12 '20 at 19:46
-
@JeremyCaney Unfortunately I am expert in Primavera P6 and Java but not in Python and I do not use Primavera P6 Web Services due to more complexity and less speed, so there is no example I can provide right now and OP should either wait for someone else or try to dig into the problem himself. – primavera-expert Jun 13 '20 at 04:21
-
Hey. So my client's firms have the primavera software, but my firm doesn't. They want to retrieve the client's data using the API, even though they haven't purchased the software – Gautam Shah Jun 15 '20 at 05:25
-
@GautamShah So there are not only programming but also licensing issues. I think you should search for some Primavera P6 developers' training (not sure if Oracle has them actually). – primavera-expert Jun 16 '20 at 21:37