Search Comments and Ratings

go

   
Date File Comment by Comment Rating
18 Jan 2015 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Kyle

Kyle (view profile)

Hello,

I have a comment and a question.

First, I've noticed a number of comments about authentication errors. I too had this problem. The solution for me was to recreate the AccessToken on the twitter-dev website, after I had changed the permissions to Read and Write. The token must be regenerated to reflect the permission change.

Second, does anyone know how to send emoji with twitty?

Thanks,
Kyle

Comment only
18 Nov 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko sushma sharma

Having the same problem: "Error using twitty (line 298)
The supplied credentials are not valid."
My credentials work using OAuth...
Any help would be appreciated!
S

Comment only
22 Aug 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Sandor Toth

I get the same error message as Mircea:
Error using twitty/callTwitterAPI (line 1974)
Java exception occurred:
java.io.IOException: Server returned HTTP response code: 401 for URL:
https://api.twitter.com/1.1/statuses/update.json
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1459)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
Error in twitty/updateStatus (line 841)
S = twtr.callTwitterAPI(httpMethod,url,params,1);

Is there any solution?

Comment only
21 Jul 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko vicente torres

I got a msg of error:

??? Error using ==> twitty
Error: File: twitty.m Line: 448 Column: 33
Unexpected MATLAB operator.

I am using Matlab 7.8.
Can you help me? Thx

Comment only
20 Jul 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Frederik Kratzert

unfortunally i am facing the same problems as below:

Error using twitty (line 298)
The supplied credentials are not valid.

i made pretty sure, that i entered everything correctly.

Would appreciate to get some feedback, because i want to use this awesom function!

p.s. Using Matlab 2013a x64 with win 8

Comment only
30 Jun 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Mircea Anghel

Hello.. I'm facing this error with tw.search('matlab'):

amazon = tw.search('matlab');
Error using twitty/callTwitterAPI (line 1975)
Java exception occurred:
java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.twitter.com/1.1/search/tweets.json?q=matlab

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)

Error in twitty/search (line 1065)
S = twtr.callTwitterAPI(httpMethod,url,params,1);

Any ideas How i can solve this?

Thanks

Comment only
10 Jun 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Sujit Sahoo

I am also facing the same problem!
"Error using twitty (line 298)
The supplied credentials are not valid."

Comment only
29 May 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Justin Baacke

5
27 May 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Justin Baacke

I am having the same problem as Sean Mc was having with the
"Error using twitty (line 298)
The supplied credentials are not valid."
I was wondering what you worked out to fix it. I have checked my credentials on the twitter site via OAuth so I am fairly sure they are in fact valid but I was wondering if you had any other ideas as to where the problem might lie.

Comment only
24 Mar 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Alfonso

Alfonso (view profile)

This looks great!! I get the same error as SosoMed. I have not been able to make it work I am new to all this, sorry. Any advise??
Thanks in advance

Comment only
28 Feb 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko SosoMed

Trying "S = tw.search('matlab'); ",
But receive error:
">> try1
Error using twitty/callTwitterAPI (line 1974)
Java exception occurred:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path
building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target

at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)

at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)

at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)

at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)

at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)

at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)

at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)

at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
Source)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)

Caused by: sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid
certification path to requested target

at sun.security.validator.PKIXValidator.doBuild(Unknown Source)

at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)

at sun.security.validator.Validator.validate(Unknown Source)

at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(Unknown Source)

at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown
Source)

at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown
Source)

... 12 more

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target

at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)

at java.security.cert.CertPathBuilder.build(Unknown Source)

... 18 more

Error in twitty/accountVerifyCredentials (line 1469)
S = twtr.callTwitterAPI(httpMethod,url,params,1);

Error in twitty/saveCredentials (line 398)
S = twtr.accountVerifyCredentials;

Error in try1 (line 3)
tw.saveCredentials();

>> try2
Error using twitty/callTwitterAPI (line 1974)
Java exception occurred:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX
path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
to find valid certification path to requested target

at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)

at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)

at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)

at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)

at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)

at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)

at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown
Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)

at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
Source)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)

Caused by: sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid
certification path to requested target

at sun.security.validator.PKIXValidator.doBuild(Unknown Source)

at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)

at sun.security.validator.Validator.validate(Unknown Source)

at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(Unknown Source)

at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown
Source)

at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown
Source)

... 12 more

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target

at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)

at java.security.cert.CertPathBuilder.build(Unknown Source)

... 18 more

Error in twitty/search (line 1063)
S = twtr.callTwitterAPI(httpMethod,url,params,1);

Error in try2 (line 1)
S = tw.search('matlab');

Comment only
06 Feb 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Sean Mc

Good stuff! And thanks for the debugging help!

5
05 Feb 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Sean Mc

Trying tw = twitty(credentials), but receive error, "The supplied credentials are not valid."
Have created twitter developer app successfully (tried twice).
MATLAB 8.1.0.604 (R2013a) on Win7 x64
Any suggestions?

Comment only
03 Feb 2014 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Arun Babu

Can anyone explain the procedure to get & include the "VeriSign Class 3 Public Primary Certification Authority - G5" certificate?

Comment only
12 Dec 2013 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Vladimir Bondarenko

From the 10th of Dec, api.twitter.com is using a new SSL certificate: https://dev.twitter.com/blog/rest-api-ssl-certificate-updates

Now, to establish a secure connection to Twitter, MATLAB must have in its keystore of trusted authorities the "VeriSign Class 3 Public Primary Certification Authority - G5" certificate.

Comment only
11 Dec 2013 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko JJ

JJ (view profile)

Works again in R2013b. Reason is the updated JVM (1.6 => 1.7) handling the TLS correctly.

I'm using http://www.mathworks.com/matlabcentral/fileexchange/33381-jsonlab-a-toolbox-to-encodedecode-json-files-in-matlaboctave as JSON parser, works flawlessly so far.

Comment only
14 Jul 2013 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Craig

Craig (view profile)

This package has worked fantastic for me for automatic data updates. Thanks!

Recently I have had the same problem as Jothi below with the ERROR:

??? Java exception occurred:
java.io.IOException: Server returned HTTP response code: 400 for URL:
http://api.twitter.com/1/account/verify_credentials.json

Any thoughts?

Thanks in advance,
Craig

5
11 Jul 2013 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Trevor Cox

Code was just what I needed, thanks

"An output function can a usual m-file, e.g., the "tweetingSummary.m" file provided with the twitty"

Could you make tweetingSummary.m available to download?

5
02 Jul 2013 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Saurabh Jha

it is not accepting query with or / and
for ex 'exascale or petascale'

Although twitter api supports this

Can some one help me on this?

Comment only
04 May 2013 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Jothi

Jothi (view profile)

Sir,

i have obtain twitter credential according to you instruction. ie.,

tw.saveCredentials()

but i have following error. how to set the credentials. how to search and download tweets using matlab.

??? Java exception occurred:
java.io.IOException: Server returned HTTP response code: 400 for URL:
http://api.twitter.com/1/account/verify_credentials.json

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

Error in ==> twitty>twitty.callTwitterAPI at 2018
inStream = BufferedReader( InputStreamReader( httpConn.getInputStream ) );

Error in ==> twitty>twitty.accountVerifyCredentials at 1410
S = twtr.callTwitterAPI(httpMethod,url,params,1);

Error in ==> twitty>twitty.saveCredentials at 233
S = twtr.accountVerifyCredentials;

kindly help me sir.

thanks in advance.

Comment only
17 Aug 2012 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Zachary

@Rucci

I added the following at line 1411:

if isstruct(S{1}), S = S{1}; end

Seems to fix the problem. Note: I have json_parser.m on my path.

Comment only
26 Jul 2012 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Rucci

Rucci (view profile)

Hello,
I've complete to obtain twitter credential according to your instruction.
I used my twitter credential to create the credential structure as the follows

credentials.ConsumerKey = 'XXXXXXXXXX';
credentials.ConsumerSecret = 'XXXXXXXXXXXXX';
credentials.AccessToken = 'XXXXXXXXXXXX';
credentials.AccessTokenSecret = 'XXXXXXXXXXXX';

Then I create the twitty object using the command: tw = twitty(credentials)
I got the error message as the follows

??? Error using ==> strfind
Inputs must be character arrays.

Error in ==> twitty>twitty.twitty at 149
if strfind(lower(S{1}),'error'), error('The supplied credentials are not
valid.'); end

I think the code had been modified since Apr 2012 for this problem. I'm not sure whether I did something wrong.

Would you please advise?

Comment only
20 Jul 2012 drawLA - Draw Toolbox for Linear Algebra. Plot 2D/3D of vectors, planes, lines, spheres, and... display matrix equations. Author: Vladimir Bondarenko Changshun Deng

excellent!

5
07 May 2012 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Jose

Jose (view profile)

I am trying to use the function friendshipsCreate and it gives me the following message...

>> S = tw.friendshipsCreate('pepe','matlab','follow','true')

??? Java exception occurred:
ice.net.URLNotFoundException: Document not found on server
at ice.net.HttpURLConnection.getInputStream(OEAB)

Error in ==> twitty>twitty.callTwitterAPI at 2018
inStream = BufferedReader( InputStreamReader(
httpConn.getInputStream ) );

Error in ==> twitty>twitty.friendshipsCreate at 1128
S =
twtr.callTwitterAPI(httpMethod,url,params,1);

Comment only
26 Apr 2012 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Vladimir Bondarenko

@Yu Ang Tan: thanks for the comment. I've fixed the strfind(lower(S),'error') issue.

@Justin: did it resolve your problem?

@Michael: I replied to your email, but my reply couldn't be delivered ("no such user" error). Do you have an alternative email address?

Comment only
26 Apr 2012 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Yu Ang Tan

Justin: change line 136:
if strfind(lower(S),'error'))...
to
if strfind(lower(S{1}),'error'))...

Michael: create a structure
credentials.ConsumerKey='SH1asd325tgdsasOVedYsA';
credentials.ConsumerSecret = 'on325gtgafafdsfegawe4365ghgSDF';
credentials.AccessToken = '123554-PZjoiso98n3ocrlWFOJ39rjlsjfwzOdq';
credentials.AccessTokenSecret = 'W6r324fjlajaMMLasffSMMk';
tw = twitty(credentials);

You'll need to replace those strings from your developer page. The strings above are just garbage values.

Comment only
23 Apr 2012 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Michael Antaran

Looks great. However, can you provide an example file format of how the credentials files should look like.

Sorry if this is a novice question. See potential but having difficult time using on 2007b.

thanks

Comment only
15 Feb 2012 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Justin

Justin (view profile)

Not sure if I'm just doing something wrong but I can't seem to get this going. Whenever you try to set or save the credentials it returns an error

Conversion to logical from cell is not possible.

Comment only
04 Feb 2012 twitty Interface-class to access the Twitter REST API v1.1. Author: Vladimir Bondarenko Beaver

Beaver (view profile)

Disregard... I didn't read the twitter api suggestions. Great Code... Under promises, Over Delivers!!

5
24 Apr 2011 drawLA - Draw Toolbox for Linear Algebra. Plot 2D/3D of vectors, planes, lines, spheres, and... display matrix equations. Author: Vladimir Bondarenko Richard Chiang

Try the others, then you'll know why this one is the best !!!

5
12 Jan 2010 drawLA - Draw Toolbox for Linear Algebra. Plot 2D/3D of vectors, planes, lines, spheres, and... display matrix equations. Author: Vladimir Bondarenko dawn

dawn (view profile)

Wonderful toolbox, save us students much time!
Thanks!

5
19 Apr 2009 drawLA - Draw Toolbox for Linear Algebra. Plot 2D/3D of vectors, planes, lines, spheres, and... display matrix equations. Author: Vladimir Bondarenko Adam

Adam (view profile)

Solid package. Excellent help file included. Very intuitive commands and many many useful options.

5

Contact us