Comments (5)
The syntax to execute the example is: (replace your own consumer key and secret
and
make sure all the required jars are in classpath)
java com.google.code.linkedinapi.client.examples.OAuthAuthenticationExample
-consumerKey TdA4ZuoRgD46-vh8kFF9l0xcs5W3ODBaGdto1OdLv9ujfZiKpq4_KBfT7j-xxxxx
-consumerSecret biSbgqH0hSzCvDMDsQyA21AOapiLzUS8Ka11QDraqVGj8kFZJEY1FrqUqYdxxxx
Both the consumer key and secret can contain underscores and dashes. If you
still
cannot execute the example, please specify the commandline syntax you are using
to
execute it.
Thanks for your help.
Regards
Nabeel Mukhtar
Original comment by nabeelmukhtar
on 11 Dec 2009 at 12:54
- Changed state: Started
from linkedin-j.
well i have changed the CONSUMER_KEY_OPTION and the CONSUMER_SECRET_OPTION in
the
OAuthAuthenticationExample and both my key option and secret option contain '-'
which
is not being accepted. i have included all the jar specially the commons.cli
which
contions the options package.
i am running it from eclipse.
do u think it's some encoding problem and needs some http encoding????
Original comment by [email protected]
on 14 Dec 2009 at 6:10
from linkedin-j.
You do not have to change the source file. You have to specify consumer key and
secret in the command line.
The CONSUMER_KEY_OPTION and CONSUMER_SECRET_OPTION are the command line option
names
and not the key and secret so changing them will break the example.
So do not change the source file and in eclipse specify the program arguments
as:
-consumerKey TdA4ZuoRgD46-vh8kFF9l0xcs5W3ODBaGdto1OdLv9ujfZiKpq4_KBfT7j-xxxxx
-consumerSecret biSbgqH0hSzCvDMDsQyA21AOapiLzUS8Ka11QDraqVGj8kFZJEY1FrqUqYdxxxx
Then run the example.
Hope that helps.
Regards
Nabeel Mukhtar
Original comment by nabeelmukhtar
on 14 Dec 2009 at 11:57
from linkedin-j.
Well i haven't made any changes to the source file, tried out the signpost outh
source code. was able to make a call. i think its an encoding issue, signpost is
using the HMAC_SHA1 standard for linkedin. If i find time i'l try it out myself.
Regards
Avijit Sadhu
Original comment by [email protected]
on 15 Dec 2009 at 5:17
from linkedin-j.
Original comment by nabeelmukhtar
on 17 Dec 2009 at 7:31
- Changed state: WontFix
from linkedin-j.
Related Issues (20)
- Use of getConnectionsByUrl - permissions problem
- Sometimes invitations via email are not sent
- getConnections APIs personList is empty
- Can't get public-profile-url from a group post's creator
- Set modified by PeopleApiClient.getConnectionsById(String, Set<ProfileField>, int, int)
- NullPointerException when post to LinkedIn Group requires moderation HOT 1
- SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container com.google.code.linkedinapi.client.LinkedInApiClientException: [unauthorized]. HOT 1
- Posting Shares Working fine but shows extra content in share
- Get Updates of Company HOT 2
- seach company and group
- Not getting the skills of current users.
- getConnection() method is returning null always for all the profile.
- postShare in group
- Register your OAuth 2 redirect URLs
- Class not found exception for LinkedInApiJaxbClient. HOT 3
- linkedin user email
- Internal Server Error While getting JobSuggesions from Linkedin using API
- OAuth: HTTP 401 Status when trying to get access token to LinkedIn HOT 1
- how to get the connection automatic HOT 2
- Llinkedin:Invalid redirect URI error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkedin-j.