Giter Site home page Giter Site logo

dtrofymenko / poeditorapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cocoanetics/poeditorapi

0.0 1.0 0.0 51 KB

An API and Command-line Tool for POEditor.com

License: BSD 2-Clause "Simplified" License

Swift 95.01% Objective-C 1.97% Ruby 3.02%

poeditorapi's Introduction

Please look at the announcement and video demonstration at Cocoanetics.com

POEditor.com API

An API wrapper written in Swift 3. With it you can add support for POEditor.com to your iOS and macOS apps.

How to Add to your Project

If you use Cocoapods, you can add the following to your Podfile to include the latest version of POEditor API.

platform :ios, '8.0'

use_frameworks!
project './project.xcodeproj'

target "project" do
	pod 'POEditorAPI'
end

If you use git submodules, then clone the GitHub repo into a sub-folder of your project.

git clone https://github.com/Cocoanetics/POEditorAPI.git Externals/POEditorAPI

Embed the POEditor framework for your platform into your app, this should cause Xcode to correctly set up the import of the umbrella header.

Smoke Test

At the top you import POEditorAPI. Then you can instantiate the API passing your token. You can get a POEditor.com API token from your profile settings page.

let poeditor = POEditor(token: "TOKEN")
poeditor.listProjects { (result) in
			
   switch result 
   {
      case .success(let projects):
         print(projects)
				
      case .failure(let error):
         print(error)
   }
}

The API makes use of the Result paradigm which returns either a .success with the result attached or a .failure with the error attached.

POEditor Tool (POET)

A command line utility that exports specific languages from a POEditor.com project and creates .strings and .stringsdict files accordingly. Build it and place it in e.g. /usr/local/bin. Then run it in the root of a project and follow the prompts.

poeditorapi's People

Contributors

odrobnik avatar

Watchers

 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.