I am using Spring Social Twitter in a project at the moment and everything is going well. Status update's post and there's no issues. I'm not 100% sure if it's possible but does anybody know if you can use this API to post Emoji's to Twitter?
Related
I've spent a few days implementing Facebook's iOS SDK to allow our users to be able to login and then post text/images to their Facebook wall via our iOS application. I've got that all working smoothly.
However, management would like to take an alternate direction for several reasons (which are irrelevant to me), whereas instead of posting on the device side (iOS), they would like the device side to use the iOS SDK in order to get the user to login and then capture the AccessToken. Then, when the user chooses to share content from our app for example, they want to pass the AccessToken up to the server, and then have the .net/c# code do the actual posting of the text/image there.
1) Is this possible?
2) I see no official support from Facebook for a server-side api. All I see is that they support Mobile and Web (client-side).
3) Through my SO and other online searches, I've seen some very out-dated attempts at an open-source .net Facebook SDK, but they seem to have been abandoned.
4) I do know that it's possible server-side (using the oAuth api) to login and gather some user information, like name/profile photo). But that is not what I need. I need the opposite. I need to login on the client-side, but post/share on the server-side.
Any help and/or direction on this matter would be greatly appreciated.
This question has been bugging me for a long time.
I have tried everything there is in Paypal docs (braintree, paypal api) except buttons who can't help me out since I need to get payment confirmation from paypal and add credit to users account.
Main problem is I am not native English speaker and I am junior developer, and I need some kind of tutorial that goes step-by-step and explains it fundamentally.
I set-up everything regarding test accounts and so on, but actual payment (via sandbox) and receiving payment info has been hell for me.
If someone can help me out with advice I would be very grateful.
I think you might want to take a look at this PayPal SDK on Github
https://github.com/paypal/PayPal-NET-SDK
The PayPal .NET SDK makes it easy to add PayPal support to your .NET
web application and is built on PayPal's REST APIs.
I am developing a web application by using asp.net 3.5 and sql server 2008R2. I have to create a page as like as facebook News Feed (wall post). I need post Status and reply comments. I know it will be done by jQuery but I am not expart of Query. Anyone help me with sample code or demo project?
Thanks
Nahid
Well a sample code for whole project doesn't seem to be the way things work on SO.
However for some things in which you should look is:
Design Idea
Look at some of the web apps which already provide such feature like Hootsuit, Facebook, Sesmic, etc
API (If using data from other websites)
Facebook Graph API
Data Handeling
Consider looking at Json.
Try out some hands on AJAX possibly from jQuery
Json Handling in (.Net) C# with Json.Net or JavaScriptSerializer
Facebook C# SDK (If data querying from facebook)
Authentication & Authorization
Forms Authentication
ASP.Net Memberships
And could be many more depending on how you specifically implement such feature in your website.
And don't forget using development tools like Firebug and Fiddler, will be very helpful when you debug your code.
I'd like to write a console program in C# that posts a Tweet to Twitter. I've never used the Twitter APIs before and don't know anything about how their authentication works. I found an API library called Twitterizer, but it seems geared towards web applications and wants the user to logon with a web browser. All the API docs on Twitter's website seems geared around this scenario as well.
Is it possible to access the Twitter APIs using a console app with no web browser access? I'm perfectly fine hard coding in the name and password for the Twitter user I want to post under as well. Thanks!
Mike
You'll need to use OAuth for authenticating in twitter.
Then use regular HTTP Request to use the twitter JSON-based API.
Here you can find a good article about OAuth, Twitter and console applications.
Also take a loot at linq2twitter lib. From it's documentation;
The Twitter API is built using
Representable State Transfer (REST).
Wikipaedia defines REST as "...a style
of software architecture for
distributed hypermedia systems...",
but I'm going to be so bold as to try
to simplify what that means. In
practice, REST is a Web service
protocol built upon Hypertext Transfer
Protocol (HTTP). You use the REST Web
service by making an HTTP call with a
URL and getting text back in some
form, which is often XML or JSON. So,
if you were to write code that made an
HTTP request with the following URL:
http://api.twitter.com/1/statuses/public_timeline.xml
You would get back an XML document
with all of the Twitter statuses from
the public timeline, which is a
snapshot in time of the last 20 tweets
at the time of your request. Go ahead
and open your browser, copy and paste
the URL above into the address bar,
and see what you get back.
I couldn't find any decent information on the web on how to do this, so I decided to write my own blog post with all the details.. Enjoy!
http://blog.kitchenpc.com/2011/01/22/rise-of-the-twitterbot/
of course you can use anything to connect to Twitter via RESTful api.
you should use oauth, and set up your application in http://dev.twitter.com, then you should read all articles listed in documents, you must specify your app as Client but not Browser so user input a number to get through authentication.
you can use many libraries so that you can save your time, all are listed in the documents
and be CAREFUL, you should not use Twitter's own api console which is buggy (as i know parameters somtimes can't be parsed), you should use APIgee instead which is powerful and stable.
if you want use basic authentication, you should use api proxy (one famous is twip), if you just need only one single C# apps, you must code by yourself:
you should use given username and password to login twitter, parse cookies passed
use normal oauth to get temporaly access token url.
use cookies got from step 1, emulates form submit to allow your apps, capture PIN code
use pin code to finish oauth.
MOST IMPORTANT, you must store access token in client's machine so next time you can bypass above steps
Just wrote a Twitter Bot in C#. This is currently posting tweets to #valuetraderteam.
https://gist.github.com/sdesalas/c82b92200816ecc83af1
The API component in the GIST below is less than 500 lines, only dependency is Json.NET, you'll need to download the latest DLL for either x64 or x86 (depending on what platform you are targetting) and include as a reference in your project.
There is an example at the bottom of the page of how you can make a tweet from a console application
Hopefully this is useful to some other people out there.
I know that there is no official API for Google Analytics but is there a way to access Google Analytics Reports with C#?
Update: Google launched a Google Analytics API today.
Google Analytics Blog - API Launched
I wrote a small project that lets you generate pretty much any Analytics report. It's listed on Google's Analytics API page - http://code.google.com/apis/analytics/docs/gdata/gdataArticlesCode.html
You can read about it here and get the source code - http://www.reimers.dk/blogs/jacob_reimers_weblog/archive/2009/05/09/added-google-analytics-reader-for-net.aspx
I emailed them asking this same question a while back and here's the response I got:
Hello,
Thank you for your email. I apologize for the delay in replying to your email. Google Analytics does not currently provide an API to access the reporting data. However, we do offer export functionality for single reports in the following formats:
PDF
Tab separated value (TSV)
XML
Excel (CSV)
This feature allows you to easily import report data into your favorite spreadsheet application or to process the data otherwise.
Additionally, we're unable to provide support for custom implementations of Google Analytics. For this level of support, you can contact one of our highly qualified Google Analytics Authorized Consultants for assistance with advanced needs. These partners deliver a number of professional services such as installation support, training, and advanced filter and e-commerce configurations.
For a complete list of our worldwide partners and a more detailed description of the services they offer, please go to http://www.google.com/analytics/support_partner_provided.html
For additional questions, please visit the Analytics Help Center at http://www.google.com/support/googleanalytics/?utm_id=tf. You can also find helpful tips and information by visiting the Google Analytics Help Forum at http://groups.google.com/group/analytics-help?utm_id=tr.
Sincerely,
[snip]
Analytics Support
For the latest updates as well as some helpful tips on Google Analytics, check out the Google Analytics blog at http://analytics.blogspot.com
I have a completed library for called GoogleAnalytics.Net that allows you to fire page views/events/transactions from within .net code.
You can download the library from it's project home page:
http://www.diaryofaninja.com/projects/details/ga-dot-net
This guy has had some success with at least some light Analytics integration. Now I realize this isn't exactly what you're looking for, but he does mention a book and perhaps you can get in touch with him.
Have a look at the SilverLight Google Analytics Snippet - http://code.google.com/apis/analytics/docs/tracking/silverlightTrackingIntro.html
http://msaf.codeplex.com/wikipage?title=Google%20Analytics
Because Silverlight is C#.
Google analytics API changed recently(2012) and because of that most of the codings are changed. so below link will be helpful for c# developers
Google Analytics API in C# -Execution of request failed: https://www.google.com/analytics/feeds/accounts/default
Google has created there own client lib Google APIs Client Library for .NET which allows for access to most of the Google Apis using dotnet.
Then can be found on nuget
Yet another analytics API for C#
https://github.com/igooana/igooana
This project is aimed at C# 5 and uses async/await and dynamic extensively.
I tried to make this API as simple as possible and maximum type-safe.