{"action":"opened","issue":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/846","labels_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/846/labels{/name}","comments_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/846/comments","events_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/846/events","html_url":"https://github.com/Alamofire/Alamofire/issues/846","id":110801998,"number":846,"title":"Unable to use Alamofire in widgets (module has no member named request)","user":{"login":"lukeg01","id":11508005,"avatar_url":"https://avatars.githubusercontent.com/u/11508005?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeg01","html_url":"https://github.com/lukeg01","followers_url":"https://api.github.com/users/lukeg01/followers","following_url":"https://api.github.com/users/lukeg01/following{/other_user}","gists_url":"https://api.github.com/users/lukeg01/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeg01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeg01/subscriptions","organizations_url":"https://api.github.com/users/lukeg01/orgs","repos_url":"https://api.github.com/users/lukeg01/repos","events_url":"https://api.github.com/users/lukeg01/events{/privacy}","received_events_url":"https://api.github.com/users/lukeg01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-10T15:54:26Z","updated_at":"2015-10-10T15:54:26Z","closed_at":null,"body":"Hello,\r\nAlamofire has been working great for the standard iOS activity, yet in widget I get \"module 'Alamofire' has no member named 'request'.\r\n\r\nhere's the code:\r\n```swift\r\n//\r\n//  TodayViewController.swift\r\n//  widget\r\n//\r\n//  Created by Luke Geelen on 10-10-15.\r\n//  Copyright © 2015 Luke Geelen. All rights reserved.\r\n//\r\n\r\nimport UIKit\r\nimport NotificationCenter\r\nimport Alamofire\r\n\r\nclass TodayViewController: UIViewController, NCWidgetProviding {\r\n        \r\n    @IBOutlet weak var temp: UILabel!\r\n    \r\n    override func viewDidLoad() {\r\n        super.viewDidLoad()\r\n        \r\n        Alamofire.request(.GET, \"http://httpbin.org/get\")\r\n            .responseString { _, _, result in\r\n                print(\"Success: \\(result.isSuccess)\")\r\n                print(\"Response String: \\(result.value)\")\r\n        }\r\n    }\r\n    \r\n    override func didReceiveMemoryWarning() {\r\n        super.didReceiveMemoryWarning()\r\n        // Dispose of any resources that can be recreated.\r\n    }\r\n    \r\n    func widgetPerformUpdateWithCompletionHandler(completionHandler: ((NCUpdateResult) -> Void)) {\r\n        // Perform any setup necessary in order to update the view.\r\n\r\n        // If an error is encountered, use NCUpdateResult.Failed\r\n        // If there's no update required, use NCUpdateResult.NoData\r\n        // If there's an update, use NCUpdateResult.NewData\r\n\r\n        completionHandler(NCUpdateResult.NewData)\r\n    }\r\n    \r\n}\r\n```"}}