Gtalk implementation in iOS - ios

Is there any way to implement Gtalk in iOS application,i just want to create an application, in which user can simply login with his/her gmail account and, chat with those people who are in his chat list.
if any one know how to do this, then please help me.
thanks in advance

Google Talk uses XMPP (Extensible Messaging and Presence Protocol). You can use for example the XMPPFramework framework to implement it. This framework is listed on a XMPP Foundation website.
XMPPFramework provides a core implementation of RFC-3920 (the xmpp
standard), along with the tools needed to read & write XML.
Check out the Getting Started Guide for iOS. It contains an example iOS project.
Furthermore, have a look into Google Talk Developer Documentation. There is a section called: I want to build a client that connects to the Google Talk service which describes steps you should take to implement a client.

Related

How to integrate Mailchimp api into my iOS Swift app

I have an app I created in Swift with my database built with Parse. I know how to export data from Parse and update my subscriber list for Mailchimp, but how do I have my app automatically update that list when a user creates a new account? I've been researching how but I haven't come across anything that can help me yet. Also everything seems to be in Objective-C. I've used bridging headers before, but I don't know if that will be necessary or not. Any guidance would be a lot of help!
Is it possible to hook into this API endpoint that's part of the Mailchimp API...
https://apidocs.mailchimp.com/api/2.0/lists/batch-subscribe.php
Honestly, I wouldn't do this. It would require you to distribute your MailChimp API key with your app, which would give any person who downloaded that app full control over your account.
You'll either want a back-end service that connects to MailChimp or look into IFTTT or Zapier for Parse and MailChimp integrations.

Swift 2 OAuth2 LinkedIn connection

I'm gonna make an native iOS app with Swift 2 and Xcode 7. The users should login using LinkedIn and OAuth 2 but I'm wondering how I should begin to set this up. I don't have many experience with OAuth 2.
Is there a good tutorial or a sample app? I saw the Ray Wenderlich post but that comes with an existing project. I want to build an app with LinkedIn login from scratch.
EDIT
I want to use the LinkedIn login to get the user's connections and send them notifications. I was researching this and I found some pages that said that connections can't be retrieved from the new LinkedIn API, is this true? It is not possible to get someone's connections from LinkedIn in a native iOS applications?
You should start with LinkedIn guide for LinkedIn and OAuth 2 .
But still if you need a sample for Authentication with OAuth 2 here it is .
For your second question related to the connection yes Linked have made changes but the API is still available but for the partners .
If you are an existing LinkedIn partner, these changes will not impact your existing partnership or the associated APIs that your partnership allows you to access.
If you are experiencing issues as a result of the May 12th changes, please reach out to your LinkedIn Business Development representative immediately.
For further details you can see Developer Program Transition Guide.
Check out this repo, I did this swift pre-2.0 but it shows you the basic algorithm. You can do it the with your secret hard coded or fetch it from the server. The key is getting the oath header just right which is a huge pain
https://github.com/GregPrice24/SwiftStream
Check this out: https://github.com/jeyben/IOSLinkedInAPI
I used this repo and successfully implement LinkedIn integration in my App. It is in Objective-C but you can use Cocoapods and import them as Frameworks and use in swift2 with no trouble.
Note: As of the 12ยด May 2015 LinkedIn applied restrictions to API usage for all non partners: See: https://developer.linkedin.com/blog/posts/2015/developer-program-changes
So you can only get the basicprofile at the beginning, but you can apply for the partner program to get those extra information such as connections here: https://developer.linkedin.com/partner-programs

Server side XMPP client for QuickBlox using Smack

I'm building a chat application using QuickBlox, and I understand that it provides SDKs for Android/iOS/JS. As part of the implementation, I have to implement a server side bot that can chat with users. Is it possible to create a XMPP client on the web server that can maintain a stateful connection with QuickBlox's cloud and act as a client, and thus chat with users as a bot? I was planning on using Smack, but I'm totally unsure of how to integrate that with QuickBlox.
I've seen a python implementation of a possible server side bot, but I was looking for a Java based solution.
QuickBlox doesn't provide a Java SDK. Can anyone point me to a sample code that uses Smack and talks to QuickBlox?
Thanks!
There is another one Python bot implementation with some commands set
https://github.com/soulfly/MehDoh-q-municate-chat-xmpp-bot
it works with QuickBlox Q-municate http://qm.quickblox.com
and you can try to play with it - it's a user with name I am IgorK, just register and add him as a friend.
With Java and Smack it's also possible
How to start:
Use Smack guide to understand how it works https://www.igniterealtime.org/builds/smack/docs/latest/documentation/gettingstarted.html
Register an account in QuickBlox Admin panel and create an application there - use 5 mins guide http://quickblox.com/developers/5_Minute_Guide
Then go to Users module in admin panel and create a couple of users
Here is how to connect to QuickBlox Chat http://quickblox.com/developers/Chat#Connecting_to_server . Just build user's jid and password using users you created in admin panel and then use these credentials for Smack
that's all, should be quite simple

iOS-Is there any method available for fetching CTCoreMessage with specific key words from CTCoreAccount or CTCoreFolder in Mailcore library?

I am developing one IOS Application in which i am integrate Gmail via Mailcore library, Now I want add search functionality for Inbox for which user can search their Email Subject and Body. But i am not aware how to implement it. Can anyone help me out? Is there any sample source code for this in Mailcore?
Use this it has search functionality
http://code.google.com/p/remail-iphone/
MailCore api I've developed same kind of app and have use it. They provide access to IMAP and SMTP servers.
Download from here
https://github.com/mronge/MailCore/

Integrating facebook chat API into iOS application

I have an iOS application that already using some methods of Facebook Graph API, but i need to implement sending private message to friend by Facebook from my application. As i know, there is no way to sending private messages by Graph API, but it maybe possible by help Facebook Chat API. I already read documentation but it don't help me. If anybody has some kind of example or tutorial, how to implement Facebook Chat API in iOS application, how sending requests or something, it will be very helpfull. Thanks.
Have a look at the XMPPFramework which has sections on both integrating the XMPP framework into iOS and implementing Facebook chat. This includes working sample projects.
Facebook private messages are accessible, but seem to be read only. See this blog post.
check this github project. they have integrated facebook api using xmppframework https://github.com/KanybekMomukeyev/FacebookChat

Resources