Skip to content

dishults/SwiftyCompanion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SwiftyCompanion

Introduction to iOS development

An app that lets you search for any login within École 42 and shows a basic profile information for it

Image

Side note

How to test 42 API V2

First, get access to API by registering your app in intra -> settings -> register new app:

Make a note of your UID and SECRET

Get token

curl -X POST --data "grant_type=client_credentials&client_id=YOUR_UID&client_secret=YOUR_SECRET" https://api.intra.42.fr/oauth/token

Make requests

curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/users/dshults"