Giter Club home page Giter Club logo

whatsappapi's Introduction

WhatsAppAPI

Framework WhatsAppAPI

  • Step 1: Open your project
  • Step 2: Now that we have our Project opened, we can drag in the WhatsAppAPI.xcodeproj

When you are dragging in the WhatsAppAPIFramework make sure that you don't have another instance of Xcode open. When I tried to drag the framework in with multiple instances of Xcode it wouldn't work properly. Once you have dragged in the framework it should have a little arrow next to it which will allow you to see the contents of that framework.

  • Step 3: Add the framework to Frameworks, Libraries and Embedded Content

To do this you will need to click on the [ProjectApp] project in the top left, go to the General tab and then look for Framework, Libraries and Embedded Content. Once you have found it, click on the + button.

When you click on the + button you will get prompted to choose the framework you want to add.

Make sure to select the WhatsAppAPIFramework.framework as it is in the above image.

  • Step 4: Use the framework

Now that we have everything setup we can use the framework. I am going to use it in the viewDidLoad in my ViewController file in MainApp. Add the following import to the top of the file, below import UIKit:

import WhatsAppAPI

Next we need to update the viewDidLoad. Replace your current viewDidLoad with the following:

override func viewDidLoad() {
    super.viewDidLoad()
    let whatsapp = WhatsApp() //Framework
    whatsapp.log(message: "whatsapp initialized")
   
}

You should now be able to build and run the app. When you do, it will print out Log message: whatsapp initialized.

whatsappapi's People

Contributors

edwylugo avatar sdvirtua avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.