Hi, First, this is my first ever mailing list so forgive if I do something stupid.
I am trying to use the web connector to connect to Pivotal Tracker but am lost in what different settings mean. The API instructions specify that I need to login via https and retrieve a token, and then use that token in the header of plain http requests. (see bottom of email). Here's the current setup I worked up to but still can't get a connection: Server: https://www.pivotaltracker.com/services/v3 UserID: my user id Password: my password Parameters: projectId = 123456 Advanced Config: Task Url: ${serverUrl}/projects/${projectId}/stories/ (but should this be https? cause api specifies http) New Task Url: ?? not worried about it just yet Query Request URL: ${serverUrl}/projects/${projectId}/stories Query Pattern: <story><id type="integer">({Id}[0-9]+?)</span></id><project_id type="integer">.*?</project_id><story_type>({Type}.*?)</story_type><url> http://www.pivotaltracker.com/story/show/({Id}[0-9]+?)</url><estimate type="integer">.*?</estimate><current_state>({Status}.*?)</current_state><description>({Description}.*?)</description><name>.*?</name><requested_by>.*?</requested_by><owned_by>({Owner}.*?)</owned_by><created_at type="datetime">.*?</created_at><accepted_at type="datetime">.*?</accepted_at><labels>.*?</labels></story> So I am confused now how to do the login to run my query because first, I have to retrieve a login token. Then to do a query I need to provide the token in the header. Should I use the HTTP Authentication section? (it doesn't specify if it's https or not). Any guidance would be greatly appreciated. Cheers, Tristan Retrieve User TokenVia Basic Auth Note: This API action requires SSL. While we recommend basic authentication, it is also possible to send the username and password parameters in a POST request. curl -u USERNAME:PASSWORD -X GET https://www.pivotaltracker.com/services/v3/tokens/active <?xml version="1.0" encoding="UTF-8"?> <token> <guid>c93f12c71bec27843c1d84b3bdd547f3</guid> <id type="integer">1</id> </token> Via POST Note: This API action requires SSL. We recommend basic authentication. curl -H "X-TrackerToken: TOKEN" -d username=USERNAME -d password=PASSWORD -X POST https://www.pivotaltracker.com/services/v3/tokens/active <?xml version="1.0" encoding="UTF-8"?> <token> <guid>c93f12c71bec27843c1d84b3bdd547f3</guid> <id type="integer">1</id> </token>
_______________________________________________ mylyn-integrators mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
