Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
new news things
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Jan 29, 2020
1 parent db99ba6 commit ed5b06d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/andromeda/araserver/pages/News.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.andromeda.araserver.pages

import com.andromeda.araserver.util.NewsData
import com.google.gson.Gson
import java.net.URL

class News{
fun main(url:String): String? {
Expand All @@ -18,4 +19,8 @@ class News{
return Gson().toJson(news)

}
fun getData(newsCat:String){
val data = URL("https://newsapi.org/v2/top-headlines?country=us&apiKey=4e3c5ce2cfff4634b4c4811c01fd2ad1").readText()

}
}

0 comments on commit ed5b06d

Please sign in to comment.